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

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