:optional CSS pseudo-class
- WDThe :optional
pseudo-class matches form inputs (<input>
, <textarea>
, <select>
) which are not :required
.
Chrome
- ﹖ 4 - 14: Support unknown
- ✅ 15 - 134: Supported
- ✅ 135: Supported
- ✅ 136 - 138: Supported
Edge
- ✅ 12 - 134: Supported
- ✅ 135: Supported
Safari
- ❌ 3.1 - 4: Not supported
- ✅ 5 - 18.3: Supported
- ✅ 18.4: Supported
- ✅ 18.5 - TP: Supported
Firefox
- ❌ 2 - 3.6: Not supported
- ✅ 4 - 136: Supported
- ✅ 137: Supported
- ✅ 138 - 140: Supported
Opera
- ﹖ 9 - 9.6: Support unknown
- ◐ 10 - 12.1: Partial support
- ✅ 15 - 116: Supported
- ✅ 117: Supported
IE
- ❌ 5.5 - 9: Not supported
- ✅ 10: Supported
- ✅ 11: Supported
Chrome for Android
- ✅ 135: Supported
Safari on iOS
- ❌ 3.2 - 4.3: Not supported
- ✅ 5 - 18.3: Supported
- ✅ 18.4: Supported
- ✅ 18.5: Supported
Samsung Internet
- ✅ 4 - 26: Supported
- ✅ 27: Supported
Opera Mini
- ◐ all: Partial support
Opera Mobile
- ◐ 10 - 12.1: Partial support
- ✅ 80: Supported
UC Browser for Android
- ✅ 15.5: Supported
Android Browser
- ﹖ 2.1 - 2.2: Support unknown
- ✅ 2.3 - 4.4.4: Supported
- ✅ 135: Supported
Firefox for Android
- ✅ 137: Supported
QQ Browser
- ✅ 14.9: Supported
Baidu Browser
- ✅ 13.52: Supported
KaiOS Browser
- ✅ 2.5: Supported
- ✅ 3: Supported