We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE

:-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,