- From: Nicolas Hoizey via GitHub <sysbot+gh@w3.org>
- Date: Wed, 20 Feb 2019 12:32:15 +0000
- To: public-css-archive@w3.org
The usage example of `constant(user-font-size)` (would now be `env(user-font-size)`) in WebKit's proposal doesn't IMHO make sense, reducing its attractiveness for standardization, because `:root`'s default font size is already set to the user's preferred font size, or the browser's default one if the user didn't change anything. `env(user-font-size)` would be much more useful when someone wants to reset the font size of an element deeply nested in the DOM tree. We could use `rem` obviously, but we sometimes work on CSS code for components that are included in pages we don't manage, which might have set a different font size on `:root` or `html`. If we want to make sure our component is accessible, and never sets a font size below the one the user asked for, `env(user-font-size)` could be the right solution. -- GitHub Notification of comment by nhoizey Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2630#issuecomment-465555311 using your GitHub account
Received on Wednesday, 20 February 2019 12:32:16 UTC