CSS::-moz-first-node
From MDC
« CSS « CSS Reference « CSS Reference:Mozilla Extensions
[edit] Summary
The :-moz-first-node pseudo-class matches an element that is the first child node of some other element. It differs from :first-child because it does not match a first child element with (non-whitespace) text before it.
[edit] Syntax
span:-moz-first-node { style properties }
[edit] Examples
span:-moz-first-node
{
background-color: lime;
}
...where...
<div> <span>:-moz-first-node</span> <span>:-moz-last-node</span> </div>
[edit] Notes
Any white space at the start of an element is ignored for the determination of :-moz-first-node.