[css-houdini-drafts] [css-properties-values-api-1] Is `@property` valid with `initial-value: smaller` and non-unversal `syntax`? (#1131)

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

== [css-properties-values-api-1] Is `@property` valid with `initial-value: smaller` and non-unversal `syntax`? ==
The [spec](https://drafts.css-houdini.org/css-properties-values-api-1/#initial-value-descriptor) wants `@property` to be invalid when `syntax` is not `*` and `initial-value` is a computationally dependent value.

In current version of Chrome and FF, `@property` is valid with `syntax: "smaller | <length-percentage>"` and `initial-value: smaller`, whereas the computed value of `font-size: smaller` depends on *"the computed `font-size` of the parent element [...]"*. Of course, `smaller` can compute to itself (in lowercase) in other contexts, so they may have intentionally left it valid.

I am not sure why a computationally dependent `initial-value` should make `@property` invalid. This is not explained, so I am struggling to determine other cases of computationally dependent values than `<length>`s.

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


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

Received on Tuesday, 8 October 2024 06:34:11 UTC