Case-insensitive CSS attribute selectors
Case-insensitive CSS attribute selectors
Including an i
before the ]
in a CSS attribute selector causes the attribute value to be matched in an ASCII-case-insensitive manner. For example, [b="xyz" i]
would match both <a b="xyz">
and <a b="XYZ">
.
Spec | https://drafts.csswg.org/selectors-4/#attribute-case |
---|---|
Status | Unofficial / Note |
IE | Edge | Firefox | Chrome | Safari | Opera |
---|---|---|---|---|---|