LWN.net Logo

Retina display support

Retina display support

Posted Jan 9, 2013 20:09 UTC (Wed) by Cyberax (✭ supporter ✭, #52523)
In reply to: Retina display support by redden0t8
Parent article: Firefox 18 is now available

HTML actually has an abstract 'em' unit which is linked to the text size.

I've actually long wished that we had some kind of 'pixels' with fixed angular size. But I kinda doubt that most web-developers would like to work with steradians :)


(Log in to post comments)

Retina display support

Posted Jan 9, 2013 21:41 UTC (Wed) by roc (subscriber, #30627) [Link]

CSS pixels are exactly "some kind of 'pixels' with fixed angular size".

Retina display support

Posted Jan 9, 2013 21:59 UTC (Wed) by Cyberax (✭ supporter ✭, #52523) [Link]

Then we lose ability to use sub-pixel positioning (last time I checked you can't use fractional pixels).

That's not a problem right now, since browser does all the drawing. But once we move into the brave new Canvas world, we'll start to get this kinds of problems. 1 pixel on a Retina display might be below eye's resolution, but 1px misalignment is easily noticeable.

Retina display support

Posted Jan 10, 2013 10:35 UTC (Thu) by roc (subscriber, #30627) [Link]

You absolutely can use fractional CSS pixels.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds