So, back in the day, it was much preferred to use EMs to pixels for font size because EMs scaled with IE6 whereas pixels did not. However, these days, every modern browser is able to scale pixel sized font correctly. EMs other advantage was that it cascades, whereas pixels do not.
That said, if one were doing web development for modern browsers and absolutely did NOT want cascading font sizes, would pixels be preferred?
I’m trying to think if there are any other drawbacks to using pixels for font size instead of EMs. Thanks!
While every modern browser is able to zoom with text sized using px, they can’t all scale text sized using px, it still depends on the browser.
Try ‘scaling’ text in IE8 using zoom, absolutely fine. Scale using the official text size modifier (page -> text size -> largest), and it doesn’t work.
Several official bodies that I work with use the official text size modifier as part of their user/group settings management. When accounts are set up for users, they’re often pre-configured using this setting. I don’t know if they have to set it there … but for me, EMs are still preferable because PX doesn’t scale everywhere.
Finally, a few words from the W3C.
ref: http://www.w3.org/QA/Tips/font-size