Re: [csswg-drafts] [css-values] ch units shouldn’t cause font downloads (#3135)

The concern I have with the argument that the `ch` unit should never *trigger* a font download (but may *use* a glyph size from a downloaded font if available) is that it seems to open the door to mysterious, stateful, action-at-a-distance scenarios.

Given the example in https://github.com/w3c/csswg-drafts/issues/3135#issuecomment-960094958, suppose there's another element on the page that uses the same `font-family: CompositeFont` and *does* happen to contain a zero character; presumably that means `ch` *will* be derived from `digits.ttf`. But perhaps that element hasn't yet been reflowed (and hence loaded the `digits.ttf` resource), e.g. because it is hidden, but then it gets exposed as a result of some subsequent change.

Or the user types a zero into a similarly-styled editable field elsewhere on the page -- does that cause everything that was sized in `ch` units to suddenly shift?

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 2 August 2022 13:23:06 UTC