Re: [csswg-drafts] [css-fonts-5] How do font-size-adjust property and size-adjust descriptor work together? (#6128)

Given that `size-adjust` is a descriptor on the font face, while `font-size-adjust` is a property on an element, I think the logical behavior is that `size-adjust` applies first, scaling all metrics retrieved from the font (including its x-height). This happens independently in each face that's being used.

These adjusted metrics then provide the basis for the computation and adjustment that the `font-size-adjust` property will do.

I think this is the behavior that will naturally arise from the patches currently in progress for Gecko, though I admit I have not actually tested the interaction yet.

(This feels somewhat parallel to the interaction of the `font-feature-settings` and `font-variation-settings` descriptors and corresponding properties, where the descriptor can set up defaults that go along with the specific font face, but then the property, if present, can adjust them further.)

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


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

Received on Tuesday, 23 March 2021 17:51:41 UTC