- From: davidsgrogan via GitHub <sysbot+gh@w3.org>
- Date: Tue, 18 Mar 2025 23:37:47 +0000
- To: public-css-archive@w3.org
> On the topic of bikeshedding [#10674 (comment)](https://github.com/w3c/csswg-drafts/issues/10674#issuecomment-2627502108) my suggestion is `env(user-text-zoom)`, because `font-scale` could be mistaken for referring to a type scale. Maybe then `zem` for zoomed font size? I think of **zoom** to mean _everything_ on the page gets enlarged. [Airbnb uses "browser zoom"](https://medium.com/airbnb-engineering/rethinking-text-resizing-on-web-1047b12d2881#:~:text=Unlike%20browser%20zoom%2C%20which%20scales,the%20rest%20of%20the%20content.); I've seen others use "display zoom", "page zoom" or "magnification" to refer to this concept. The proposed env variable here is intentionally meant to be about **text** sizes and NOT about full page zoom. That same Airbnb article uses the term "Font Scaling" for this concept. We don't intend to populate this environment variable with anything from the user's _zoom_ settings, only from their text size settings. ([Josh's table](https://github.com/w3c/csswg-drafts/issues/10674#issuecomment-2627614615)) So I think we should _completely_ omit `zoom` from the name to avoid exacerbating the existing inherent confusion between these two concepts (concept 1: everything changes size. concept 2: only text changes size). I asked an author who specializes in a11y about including `zoom` in the name -- he had the same concern about confusion between the two concepts. But you are right that we also don't want authors to confuse this env variable with the **type scale** concept, as described by https://m3.material.io/styles/typography/type-scale-tokens and https://baseline.is/tools/type-scale-generator/. I don't think `preferred-text-scale`, which HAD looked like the leading candidate, would cause such confusion. But if you do, then maybe we s/scale/factor/ like Emilio [suggested](https://github.com/w3c/csswg-drafts/issues/10674#issuecomment-2627522339) and go with `preferred-text-factor`? So some options for the env var: (** they've had explicit proponents in this issue) 1. `user-text-zoom` ** 3. `font-scale-factor` 7. `text-scale-factor` 5. `preferred-text-scale` ** 5. `preferred-text-factor` ** 8. `preferred-text-scale-factor` ** 8. `preferred-font-scale-factor` Options for the unit are 1. `pem` -- preferred 2. `uem` -- user 3. `zem` -- zoom My vote for env is `preferred-text-scale-factor` or if that's too long, `preferred-text-factor`. And `pem` for the unit. IMO those env var names are not easily confused with either page zoom OR type scales. -- GitHub Notification of comment by davidsgrogan Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10674#issuecomment-2734958776 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 18 March 2025 23:37:48 UTC