November 2011
3 posts
3 tags
WebKit zoomed-out font-size threshold
The zoomed-out font-size threshold in WebKit is a mysterious anomaly I’ve long had my suspicions about, but now have finally tested. Take some body copy, start zooming out the page, and observe how copy with smaller font-sizes seem to maintain some legible size, even though they should be much smaller. Try hitting ⌘- too see the effect on this fiddle. View fiddle - zooming font-size...
Nov 18th
11 notes
1 tag
instanceof →
The instanceof operator tests whether an object has in its prototype chain the prototype property of a constructor. Like typeof, but for ballers who are working multiple classes and instances.
Nov 16th
2 notes
4 tags
Subpixel positioning with CSS transforms and type...
Along with WebKit hardware-accelerated anti-aliasing, CSS 3D transforms can have adverse effects on type rendering when translate X/Y values have subpixel, or decimal values. View fiddle: Subpixel type rendering. Hover over elements to disable transforms. In WebKit, the first two elements will have fuzzy type and borders, as rendered elements don’t exactly line up with pixels on the...
Nov 2nd
13 notes