[csswg-drafts] [css-text-decor-4] Computed value of text-decoration-thickness (#10044)

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

== [css-text-decor-4] Computed value of text-decoration-thickness ==
According to the current draft, the computed value of `text-decoration-thickness` is "specified keyword or absolute length", which implies that percentages must be resolved to lengths in the computed value.

This seems to be at odds with the note just below, which says that

>  A percentage will inherit as a relative value, and will therefore scale with changes in the font as it inherits.

If percentages were retained in the computed value, this would occur naturally, but with the computed value being an absolute length, inheritance seems to be a special case.

So was the definition of the computed value just overlooked when adding percentage support? AFAICS the current WPT test at https://wpt.live/css/css-text-decor/text-decoration-thickness-computed.html expects to see percentages retained.

On the other hand, there's an animation test at https://wpt.live/css/css-text-decor/animations/text-decoration-thickness-interpolation.html that expects to see percentages resolved to absolute px lengths. If the computed-value test is correct and percentages should be retained, then shouldn't they also be interpolated as such?



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


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

Received on Thursday, 7 March 2024 18:59:17 UTC