5.5-90%
2-3.60%
4-140%
3.1-40%
3.2-4.30%
2.1-2.20%
BaselineWidely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2018.
The :optional pseudo-class matches form inputs (, , ``) which are not :required.