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] Clarify parsing of duplicate descriptor declarations #1112

Open
cdoublev opened this issue Oct 18, 2023 · 0 comments

Comments

@cdoublev
Copy link

cdoublev commented Oct 18, 2023

I am sorry because the following situation is rather unlikely...

@property --custom {
  inherits: false;
  syntax: '<length>';
  syntax: '<unsupported>';
  initial-value: 1;
  initial-value: 1px;
}

... but is it an invalid custom @property registration?

The initial-value descriptor’s value must parse successfully according to the grammar specified by the syntax definition. [...] If the above conditions are not met, the @property rule is invalid.

I suggest to add something similar to this in the introduction of 3. The @property Rule (or even better, in CSS Syntax):

Descriptor declarations in @property are parsed like property declaclarations in a style rule: if a descriptor is declared multiple time with a valid value, only the last declaration remains.

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