You’re reading the English version of this content since no translation exists yet for this locale. Help us translate this article!
Draft
This page is not complete.
This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Note: The :blank
selector is considered at risk, as the CSSWG keeps changing it.
See CSSWG issue #1967.
The :blank
CSS pseudo-class selects empty user input elements (eg. <input>
or <textarea>
).
Syntax
:blank
Specifications
Specification | Status | Comment |
---|---|---|
Selectors Level 4 The definition of ':blank' in that specification. |
Working Draft | Initial definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
:blank | Chrome No support No | Edge No support No | Firefox
No support
No
| IE No support No | Opera No support No | Safari No support No | WebView Android No support No | Chrome Android No support No | Firefox Android No support No | Opera Android No support No | Safari iOS No support No | Samsung Internet Android No support No |
Legend
- No support
- No support
- Experimental. Expect behavior to change in the future.
- Experimental. Expect behavior to change in the future.
- See implementation notes.
- See implementation notes.