[csswg-drafts] [css-fonts-5] Computed value for font-size-adjust (#10292)

drott has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-fonts-5] Computed value for font-size-adjust ==
Branched off from https://github.com/w3c/csswg-drafts/issues/6384

@shivamidow wrote in https://github.com/w3c/csswg-drafts/issues/6384#issuecomment-2060578912:

>> So, we currently have:
>> 
>> > **`from-font`**
>> > Computes to the [`<number>`](https://drafts.csswg.org/css-values-4/#number-value) corresponding to the specified metric of the [first available font](https://drafts.csswg.org/css-fonts-4/#first-available-font).
>> 
>> Proposed resolution (the "no adjustment" option):
>> 
>> > **`from-font`**
>> > If the specified metric exists, computes to the [`<number>`](https://drafts.csswg.org/css-values-4/#number-value) >
corresponding to the specified metric of the [first available font](https://drafts.csswg.org/css-fonts-4/#first-available-font). Otherwise, the same as `none`

> I'd like to clarify the computed value for `from-font` a bit more. Unless the specified metric exists in the used font, what is the computed value of `font-size-adjust: ic-height from-font` in the proposed resolution? [Is it `ic-height none` or just 'none'](https://github.com/web-platform-tests/wpt/blob/master/css/css-fonts/parsing/font-size-adjust-computed.html#L46)?

to which @svgeesus replied, the computed value should ne `none` in this case.

@drott wrote:

> I am surprised the computed value would in either situation leak something from what's found in the font files. Whether that's related to a number fount in the font file, or from a heuristic, or none. Don't we need to adjust the [spec text for the computed value](https://drafts.csswg.org/css-fonts-5/#font-size-adjust-prop) to include from-font? Could it be that was historically not updated when from-font was added? But I might be misunderstanding something here.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10292 using your GitHub account


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

Received on Wednesday, 8 May 2024 08:29:01 UTC