Re: [csswg-drafts] @font-face overrides for superscript/subscript metrics (#5518)

As far as I can tell, the [canonical definition](https://www.w3.org/TR/CSS2/visudet.html#propdef-vertical-align) of `vertical-align` is in CSS2.1, where it says:

> **sub**
> Lower the baseline of the box to the proper position for subscripts of the parent's box. (This value has no effect on the font size of the element's text.)
> **super**
> Raise the baseline of the box to the proper position for superscripts of the parent's box. (This value has no effect on the font size of the element's text.)

It doesn't appear to define what "proper position" means.

I believe that this means that WebKit's (and probably other browsers') behavior of disregarding what the font says and just using a hardcoded formula to determine `vertical-align: sub` and `vertical-align: sup` is spec-compliant.

If this proposal for `superscript-shift-override` and `subscript-shift-override` were to be accepted, would this hardcoded formula become noncompliant? (Another way of asking this question is: would this spec change be a _must_ or a _should_ or a _may_?)

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


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

Received on Wednesday, 23 September 2020 06:36:24 UTC