Case-sensitive attribute selectorLimited availability
The s identifier in a CSS attribute selector matches attribute values case-sensitively in document languages like HTML where attribute values are case-insensitive.
Not yet supported in all major browsers — check the table and provide a fallback.
Browser support
DesktopChrome
✕Not supportedup to 155
Current: 155Edge
✕Not supportedup to 154
Current: 154Firefox
1–65Not supported
66+Supportedsince Mar 19, 2019
Current: 157Safari
1–26.6Not supported
27+Supportedsince Sep 14, 2026
Current: 27MobileChrome Android
✕Not supportedup to 155
Current: 155Firefox Android
4–65Not supported
66+Supportedsince Mar 19, 2019
Current: 157Safari iOS
1–26.6Not supported
27+Supportedsince Sep 14, 2026
Current: 27How to use
Not supported in Chrome, Edge, Chrome Android. Use feature detection below and provide a fallback (or a polyfill) for those browsers.
Example
Full syntax and examples are on MDN — see the links below.
Feature detection
CSS · check before using
@supports selector(:attribute) {
/* styles that use :attribute */
}
/* or in JavaScript */
if (CSS.supports("selector(:attribute)")) {
// use it
}