pseudo-class
:-moz-last-node — CSS reference
Nonstandard Gecko selector for last significant child node, ignoring whitespace-only text. Last-child checks elements only, so it is not equivalent when significant text follows.
Formal Syntax & Structure
css syntaxcss
span:-moz-last-nodeWorking Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>:-moz-last-node</title><style>body{margin:0;background:white}#a{box-sizing:border-box}body{color:black}span:-moz-last-node{color:red}span:last-child{color:rgb(0,128,0)}</style><body><div><span>First</span><span id="a">Last</span> </div></body></html>