W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2016

Re: [csswg-drafts] [cssom] "case-sensitive match for a supported CSS property"?

From: Simon Sapin via GitHub <sysbot+gh@w3.org>
Date: Fri, 07 Oct 2016 16:24:51 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-252297370-1475857489-sysbot+gh@w3.org>
The case-sensitive match makes sense since `property` was 
ASCII-lower-cased in a previous step. This leaves excluding custom 
properties.

By the way, custom property names should not be lower-cased:

```js
document.documentElement.style.setProperty("--A", "b");
assert_equals(document.documentElement.style.getPropertyValue("--A"), 
"b");
assert_equals(document.documentElement.style.getPropertyValue("--a"), 
"");
```


-- 
GitHub Notification of comment by SimonSapin
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/580#issuecomment-252297370 
using your GitHub account
Received on Friday, 7 October 2016 16:25:03 UTC

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