- From: Chris Morgan via GitHub <sysbot+gh@w3.org>
- Date: Sun, 02 Mar 2025 15:42:36 +0000
- To: public-css-archive@w3.org
I just learned about this discussion. It touches on something I’ve felt was lacking for many years: nomenclature (and perhaps identity and/or formalisation) for what the `em` and `rem` units mean on `:root` `font-size` and in media queries. Personally I’ve been calling it “browser em” for quite a few years, am unaware of anyone else concretely naming the concept, and have written at least documentation with this unofficial unit, `bem`. (Pity about the naming conflict with the Block-Element-Modifier methodology.) Am I correct in thinking: 1. That this isn’t defining a new concept, just giving a name for an ancient concept, and allowing it to be used in more places (via this new unit and `env()` variable). 2. That under this proposal, use of the `em` and `rem` units on the root element’s `font-size`, and in media queries, would now be synonymous with `pem`. 3. That this also means the `pem` could vary by document language. (Again, this is part of existing implementations. In Firefox, you can control it by language; bypassing the UI, set pref `font.size.variable.ar` to 10, and `data:text/html,<html lang=ar>…` will have a base font size of 10.) -- GitHub Notification of comment by chris-morgan Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10674#issuecomment-2692787608 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 2 March 2025 15:42:37 UTC