CSS - :-moz-last-node

The :-moz-last-node CSS pseudo-class matches an element that is the last child node of some other element. It differs from :last-child because it does not match a last child element with (non-whitespace) text after it.

Example

 

CSS

CSS
span:-moz-last-node {
  background-color: lime;
}

HTML

HTML
<div>
  <span>:-moz-first-node</span>
  <span>:-moz-last-node</span>
</div>

Syntax  

CSS
<var>span</var>:-moz-last-node { style properties }

Description  

The :-moz-last-node CSS pseudo-class matches an element that is the last child node of some other element. It differs from :last-child because it does not match a last child element with (non-whitespace) text after it.

Any white space at the end of an element is ignored for the determination of :-moz-last-node.

See Also  

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/css/:-moz-last-node

CSS CSS Reference NeedsCompatTable Non-standard