Serious bug: Slick Slider turns off subpixel font rendering on the entire site in Chrome
See original GitHub issueshort description of the bug / issue, provide more detail below.
The fonts looks like this in latest Chrome with Slick Slider’s .js file uncommented in my HTML:
However if I re-activate slick slider the subpixel rendering just gone in Chrome:
https://jsfiddle.net/Lanti/pnkogaLz/29/
https://jsfiddle.net/Lanti/pnkogaLz/30/
Steps to reproduce the problem
- Make a screenshot from the following Fiddle example in Chrome latest:
https://jsfiddle.net/Lanti/pnkogaLz/29/
- Insert in Photoshop, zoom in to see pixels.
- The subpixel rendering (chromatic abberation around the characters) is gone, when Slick Slider is enabled!
- Uncomment the slick slider’s init code and the subpixel rendering back again:
https://jsfiddle.net/Lanti/pnkogaLz/30/
Needs to be fixed ASAP!!! This causing blurry, bolder text in Chrome.
Can it be an issue in slick.min.css
?
UPDATE:
This is happens to be the case when:
a.) Slick slider used with default slick.min.css
, no own styling for the slider, as seen at https://jsfiddle.net/Lanti/pnkogaLz/29/
.
b.) Slick slider used with my own styling (flexbox layout), but using a <div class="container">
after the <body>
tag with the following CSS:
.container {
display: -webkit-flex; display: flex;
-webkit-flex-direction: column; flex-direction: column;
}
So, the bug is only presented when either you use with the default CSS or having slick slider in a flexbox layout. Both cases the subpixel font rendering turned off on the entire site in Chrome.
More Details
- Which browsers/versions does it happen on?
Chrome 50.0.2661.87 m 64bit
- Which jQuery/Slick version are you using?
Jquery 3.0.0-Beta1 Slick Slider 1.5.9
- Did this work before?
No, Slick Slider always causing this!
Issue Analytics
- State:
- Created 7 years ago
- Comments:9
Top GitHub Comments
Seems like
useTransform: false
solves the issue. Turning this off causing any side effects in slick’s operation?I experiencing performance drop in rotation with this solution.
Thanks for finding an interesting CSS quirk in Chrome…
it’s caused by the browser splitting layers out to the GPU for 3d transforms… https://jsfiddle.net/bkf18379/
some people say
-webkit-font-smoothing: antialiased;
will help, it doesnt for me. http://stackoverflow.com/questions/12502234/how-to-prevent-webkit-text-rendering-change-during-css-transitionI think you’ll find all sliders will cause this, unless they avoid any transforms and use the left properties. You can try to edit the CSS of slick so that there’s no transforms.
Best, Simon