[csswg-drafts] [css-text-decor] Can text-decoration-thickness mix percentages and lengths? (#9469)

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

== [css-text-decor] Can text-decoration-thickness mix percentages and lengths? ==
There's a WPT testing that `text-decoration-thickness` takes `calc()` mixing percentages and lengths.
https://github.com/web-platform-tests/wpt/blob/b5c73fa21b/css/css-text-decor/text-decoration-thickness-valid.html#L24-L25

Except [the spec](https://drafts.csswg.org/css-text-decor-4/#text-decoration-thickness-property) specifies the syntax to be: `auto | from-font | <length> | <percentage>`, which means that they can't actually be mixed? If they are allowed to be mixed, the type should probably be `<length-percentage>`.

It seems like the mixing is supported in Firefox / Chrome. Safari doesn't currently support percentages.

cc @kojiishi @fantasai @shivamidow 

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


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

Received on Sunday, 15 October 2023 14:13:54 UTC