E[foo="bar" i]

Case-Sensitivity

The case-sensitivity selector matches any element whose specified attribute is equal to a value of any case combination.

Browser Support (tested using latest versions)

Desktop
Google Chrome
Yes
Mozilla Firefox
No
Safari
Yes
Opera Browser
No
Internet Explorer
No
Mobile
Android Browser
No
Chrome for Android
No
Mozilla Firefox Mobile
No
Safari iOS
No
Opera Mobile
No
IE Mobile
No

Syntax

E[attr="val" i]
/* Where "i" stands for case-insensitive. */
}

Example

/* In this example, all input elements containing a value of name, Name, NAME, etc. */

input[value="name" i] {
border: 1px solid #00aa00;
}

Information is based on Selectors Level 4 - W3C Working Draft (last updated on May 2, 2013)
Copyright © 2013 W3C® (MIT, ERCIM, Keio, Beihang), All Rights Reserved. W3C liability, trademark and document use rules apply.