- From: Tab Atkins Jr. via GitHub <noreply@w3.org>
- Date: Thu, 07 May 2026 23:28:09 +0000
- To: public-css-archive@w3.org
Forgot this thread existed, and we ended up reinventing the same syntax *again* in #12317, lol. So the proposal is a shorthand way to write @property as an at-statement rather than an at-rule, putting the syntax and the initial value into the prelude, using exactly the same syntax as `@function` arguments (except allowing for multiple property names, as already resolved). If you want to set `inherits` or anything we add in the future, you'd just use the at-rule form. Unlike `@layer` which is two distinct types of rules in its statement and rule form, here the statement form would just be a shorthand for the rule form, so we don't need to have a separate CSSOM interface. There is a question of how to serialize it, tho - I propose that it's not worth holding onto a bool for what form it was parsed as (and verifying that 'inherits' and future properties are indeed left at their initial values), so we should just always serialize to the rule form. -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7523#issuecomment-4401904022 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 7 May 2026 23:28:10 UTC