Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cdoublev opened this issue Oct 8, 2024 · 0 comments

Comments

@cdoublev
Copy link
Contributor

cdoublev commented Oct 8, 2024

The spec 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant