W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2021

Re: [csswg-drafts] [mediaqueries] Account for minimum font size in relative length media queries (#5858)

From: Rune Lillesveen via GitHub <sysbot+gh@w3.org>
Date: Tue, 19 Jan 2021 15:49:34 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-762931932-1611071373-sysbot+gh@w3.org>
Minimum font-size does not affect em/rem lengths in computed values on elements. Blink aligned with Firefox for M79 fixing [308862](https://crbug.com/308862). The reason for fixing it was that a minimum font-size would break a lot of real-world layouts. We discovered that when there was a bug which accidentally wrote a minimum font-size of 6px from the settings UI and we got many reports about it.

The typical failing sites would set the font-size on the html element to a size lower than the minimum font-size expecting rem units for other elements to not be affected by the minimum font-size.

So, I don't think the statement about relative units in the first comment is accurate. At least not for Chrome or Firefox. The width and height of this box is 100px regardless of minimum font-size:

```
<style>
  div { font-size: 1px; width: 100em; height; 100em; background: green }
</style>
<div></div>
```


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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 19 January 2021 15:49:36 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:38 UTC