:-moz-only-whitespace Redirect 1


The :-moz-only-whitespace pseudo-class matches an element that has no child nodes at all or empty text nodes or text nodes that have only white-space in them. Only when there are element nodes or text nodes with one or more characters inside the element, the element doesn't match this pseudo-class anymore.


span:-moz-only-whitespace { style properties }


span:-moz-only-whitespace::before {
    background-color: lime;


  <span> </span>

Document Tags and Contributors

 Last updated by: Sheppy,