:optional CSS pseudo-class
- WDThe :optional
pseudo-class matches form inputs (<input>
, <textarea>
, <select>
) which are not :required
.
Chrome
- ﹖ 4 - 14: Support unknown
- ✅ 15 - 128: Supported
- ✅ 129: Supported
- ✅ 130 - 132: Supported
Edge
- ✅ 12 - 127: Supported
- ✅ 128: Supported
Safari
- ❌ 3.1 - 4: Not supported
- ✅ 5 - 17.6: Supported
- ✅ 18.0: Supported
- ✅ 18.1 - TP: Supported
Firefox
- ❌ 2 - 3.6: Not supported
- ✅ 4 - 129: Supported
- ✅ 130: Supported
- ✅ 131 - 133: Supported
Opera
- ﹖ 9 - 9.6: Support unknown
- ◐ 10 - 12.1: Partial support
- ✅ 15 - 110: Supported
- ✅ 111: Supported
IE
- ❌ 5.5 - 9: Not supported
- ✅ 10: Supported
- ✅ 11: Supported
Chrome for Android
- ✅ 128: Supported
Safari on iOS
- ❌ 3.2 - 4.3: Not supported
- ✅ 5 - 17.6: Supported
- ✅ 18.0: Supported
- ✅ 18.1: Supported
Samsung Internet
- ✅ 4 - 24: Supported
- ✅ 25: 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
- ✅ 128: Supported
Firefox for Android
- ✅ 127: Supported
QQ Browser
- ✅ 14.9: Supported
Baidu Browser
- ✅ 13.52: Supported
KaiOS Browser
- ✅ 2.5: Supported
- ✅ 3: Supported