pseudo-class
:-moz-only-whitespace — CSS reference
Nonstandard Gecko selector for elements containing no children other than whitespace text. Empty is an approximation: whitespace text is significant in current common implementations.
Formal Syntax & Structure
css syntaxcss
div:-moz-only-whitespaceWorking Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>:-moz-only-whitespace</title><style>body{margin:0;background:white}#a{box-sizing:border-box}body{color:black}div:-moz-only-whitespace{color:red}div:empty{color:rgb(0,128,0)}</style><body><div id="a"></div></body></html>