pseudo-class

:-moz-first-node — CSS reference

Nonstandard Gecko selector for first significant child node, ignoring whitespace-only text. First-child checks elements, not significant text nodes; it is an approximation.

Formal Syntax & Structure

css syntaxcss
span:-moz-first-node

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>:-moz-first-node</title><style>body{margin:0;background:white}#a{box-sizing:border-box}body{color:black}span:-moz-first-node{color:red}span:first-child{color:rgb(0,128,0)}</style><body><div> <span id="a">First</span><span>Second</span></div></body></html>
CSS Reference