Re: [csswg-drafts] [css-font-loading] Renaming the FontFace 'stretch' attribute to 'width' (to align with CSS Fonts) (#10673)

Presumably the [`FontFace` interface](https://drafts.csswg.org/css-font-loading/#fontface) can simply expose both `width` and `stretch` attributes, with both being mapped to the same internal value (so that setting either of them will affect the value returned by both).

For the [`FontFaceDescriptors` dictionary](https://drafts.csswg.org/css-font-loading/#dictdef-fontfacedescriptors) passed to the constructor, either `width` and `stretch` can be used to set the attribute. If both are present but have different values, what happens? We could either say this throws an error, or define which is to take precedence. (I think I'd vote for giving precedence to `width` as the "canonical" name of the attribute, and only honoring `stretch` if `width` is not present.)

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


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

Received on Saturday, 3 August 2024 21:29:34 UTC