Skip to content

Instantly share code, notes, and snippets.

@jwdallas
Created July 17, 2013 22:06
Show Gist options
  • Save jwdallas/6024981 to your computer and use it in GitHub Desktop.
Save jwdallas/6024981 to your computer and use it in GitHub Desktop.
subpixel antialiasing stress test
/* 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);
}
<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?
-->
// alert('Hello world!');
{"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