Re: [csswg-drafts] [css-fonts] font-variant-numeric: diagonal-fractions, in most fonts, doesn't work with semantic markup (#5756)

I'm not sure if this should be a separate issue, but: given that fonts vary a lot, the Font and Text CG closed without handling this issue, and CSS automatically falls back to different fonts if the developer's preferred font doesn't load, it seems like the `font-variant-*`, `font-feature-settings`, and similar properties should avoid applying to fallback fonts. Otherwise, if I've marked up `<frac>1 1/2</frac>` to get [Lato's](https://www.latofonts.com/lato-free-fonts/) (approximately) "1&hairsp;&sup1;⁄₂", I might instead get the fallback font's "&sup1; &sup1;⁄₂".

I could imagine either specifying which font(s) each property applies to, or just saying that they only apply to the first element of the `font-family` list.

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


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

Received on Saturday, 25 November 2023 16:55:36 UTC