Non-standard: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
Note: In Selectors Level 4, the :empty
selector was changed to act like :-moz-only-whitespace
, but no browser currently supports this yet.
The :-moz-only-whitespace
CSS pseudo-class matches elements that only contain text nodes that only contain whitespace. (This includes elements with empty text nodes and elements with no child nodes.)