W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2019

Re: [csswg-drafts] [cssom] "If property is not a custom property, follow th..." (#4542)

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Tue, 26 Nov 2019 16:46:30 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-558717861-1574786788-sysbot+gh@w3.org>
The bit about "If property is not a custom property" only affects the sub-steps 2.1 and 2.2, which are about adjusting the case and then checking whether the property name is recognized. The rest of the algorithm still applies for custom properties (those that start with `--`), which are treated as literals without any case adjustments.

See related discussion in #1316 about why simple JS getter/setters would be difficult to spec for arbitrary property names.

I agree with you that there should be more prominent notes for authors, though. I added a reminder to the still-open issue in 1316.

GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4542#issuecomment-558717861 using your GitHub account
Received on Tuesday, 26 November 2019 16:46:31 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:56 UTC