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

Issue with "@property": Where does the multiple property syntax come from? #5830

Closed
LeaVerou opened this issue Jun 9, 2021 · 5 comments · Fixed by #5832
Closed

Issue with "@property": Where does the multiple property syntax come from? #5830

LeaVerou opened this issue Jun 9, 2021 · 5 comments · Fixed by #5832
Assignees
Labels
Content:CSS Cascading Style Sheets docs

Comments

@LeaVerou
Copy link
Contributor

LeaVerou commented Jun 9, 2021

MDN URL: https://developer.mozilla.org/en-US/docs/Web/CSS/@property

The MDN article mentions a multiple property syntax:

@property --primary-color,
@property --secondary-color,
@property --text-color {
  syntax: '<color>';
  inherits: true;
}

@property --primary-color {
  initial-value: red;
}

@property --secondary-color {
  initial-value: blue;
}

@property --text-color {
  initial-value: green;
}

However, the grammar in the spec does not appear to support such a thing, nor is it supported by any implementation.

MDN Content page report details
@rachelandrew
Copy link
Collaborator

Hmm... not sure but this web.dev article uses the same https://web.dev/at-property/

Which seems to have got into both places here: GoogleChrome/web.dev#4260

@rachelandrew rachelandrew self-assigned this Jun 9, 2021
@rachelandrew rachelandrew added the Content:CSS Cascading Style Sheets docs label Jun 9, 2021
@rachelandrew
Copy link
Collaborator

I'll see if Una knows, because I don't understand this either.

@LeaVerou
Copy link
Contributor Author

LeaVerou commented Jun 9, 2021

I wonder if @tabatkins knows.

@rachelandrew
Copy link
Collaborator

looks like it was an error GoogleChrome/web.dev#4433 (comment)

I'll update MDN

@rachelandrew
Copy link
Collaborator

that should be sorted once #5832 is merged, thanks for spotting this @LeaVerou

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Content:CSS Cascading Style Sheets docs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants