[csswg-drafts] [css-shapes-1] Accept `<percentage>` in `shape-image-threshold` (#9884)

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

== [css-shapes-1] Accept `<percentage>` in `shape-image-threshold` ==
Only `<number>` is listed below the definition table of the property.

https://drafts.csswg.org/css-shapes-1/#shape-image-threshold-property

Before https://github.com/w3c/csswg-drafts/commit/0a1345a975ed02d345e94f59125d7a7f5d805022, its value definition was `<alpha-value>`, which accepts both `<number>` and `<percentage>`, but requires clamping the specified value normalized to a `<number>`. It is now `<'opacity'>`, which does not requires clamping, noting that @svgeesus has [some concerns](https://drafts.csswg.org/css-shapes-1/#shape-image-threshold-property) about using `<'opacity'>`  instead of `<opacity-value>`

Chrome and FF (at least) supports it. It is normalized to `<number>` and is not clamped.

[WPT](https://github.com/web-platform-tests/wpt/blob/71b03d2369963df0600ea229e2bd9023a1bd1499/css/css-shapes/parsing/shape-image-threshold-valid.html) is only testing `<number>`.

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


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

Received on Thursday, 1 February 2024 07:17:22 UTC