Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #10003 from adobe/pflynn/fix-cef-subpixel-aa
Browse files Browse the repository at this point in the history
Fix bug #9978 (CEF 2171: Significant decrease in font quality on Windows).
  • Loading branch information
RaymondLim committed Nov 24, 2014
2 parents 3bd177e + 4d2f59b commit a222e6a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/styles/brackets.less
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,15 @@ html, body {
/* Turn off subpixel antialiasing on Mac since it flickers during animations. */
-webkit-font-smoothing: antialiased;

/* This is a hack to avoid flicker when animations (like inline editors) that use the GPU complete.
It seems that we have to put it here rather than on the animated element in order to prevent the
entire window from flashing.
See: http://stackoverflow.com/questions/3461441/prevent-flicker-on-webkit-transition-of-webkit-transform
*/
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
// This is a hack to avoid flicker when animations (like inline editors) that use the GPU complete.
// It seems that we have to put it here rather than on the animated element in order to prevent the
// entire window from flashing.
// See: http://stackoverflow.com/questions/3461441/prevent-flicker-on-webkit-transition-of-webkit-transform
// Mac-only though, since this would turn off subpixel antialiasing (ClearType) on Windows
&.platform-mac {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}

.dark,
&.dark {
Expand Down

0 comments on commit a222e6a

Please sign in to comment.