Re: [csswg-drafts] Is it CSS "feature" or bug?

Many browsers will have minimum font-size settings that will override the `font-size:0.75px` setting on the root element, which will then of course throw off your em sizing.

That said, for IE & Edge, it appears to be more of a rounding error: they only keep one decimal place, so that a `font-size: 0.75px` is treated as `font-size: 0.7px`.

Of course, you should never be setting unreadably small font sizes, and it is explicitly allowed [in the CSS Font specs](https://drafts.csswg.org/css-fonts-3/#font-size-prop) that when rendering text, the actual font-size can be adjusted as necessary for good rendering.  However, that only applies to the actual font-size used for text rendering, not to the official "used" font-size that is inherited and used for em/rem units.

If you have practical examples of scaling layout elements with em units, where the `font-size` rounding in Edge/IE throws off the correct layout, then [file a bug on the browser](https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/).

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2382#issuecomment-370190384 using your GitHub account

Received on Sunday, 4 March 2018 00:10:32 UTC