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

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