Created
July 17, 2013 22:06
-
-
Save jwdallas/6024981 to your computer and use it in GitHub Desktop.
subpixel antialiasing stress test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* subpixel antialiasing stress test */ | |
* { margin:0; padding:0 } | |
li { | |
display: block; | |
font: 100 2.6em/1.4 Helvetica Neue; | |
background-color: #fff; | |
} | |
li:nth-child(2) { | |
background-color: transparent; | |
} | |
li:nth-child(3) { | |
background-color: transparent; | |
-webkit-transform: translateZ(0); | |
} | |
li:nth-child(4) { | |
background-color: #fff; | |
-webkit-transform: translateZ(0); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li>opaque background | |
<li>transparent background | |
<li>transparent background with hardware acceleration | |
<li>opaque background with hardware acceleration | |
<!-- | |
NOTE: | |
-------------------- | |
This is broken in dabblet. Run this in a file and you'll | |
see the text on transparent background with hardware | |
acceleration loses its subpixel rendering. | |
Though weirdly only in safari? | |
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment