W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2017

Re: [csswg-drafts] [selectors-4] Case-sensitive attribute selectors

From: Valtteri Laitinen via GitHub <sysbot+gh@w3.org>
Date: Mon, 11 Dec 2017 10:23:36 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-350682449-1512987815-sysbot+gh@w3.org>
Yeah, that feels very strange! The `type` attribute is always compared case-insensitively in other elements too.

A test case:

```html
<style>
    p, foo {
        display: block;
        height: 2em;
    }

    [type=a] { background: blue }
    [type=A] { background: green }
</style>

<p type="a"></p>
<p type="A"></p>

<foo type="a"></foo>
<foo type="A"></foo>
```

All the boxes are green.

Tested with Chrome 63, Firefox 57 and Safari 11.

-- 
GitHub Notification of comment by valtlai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2101#issuecomment-350682449 using your GitHub account
Received on Monday, 11 December 2017 10:23:37 UTC

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