I\'m trying to find a CSS selector for an element that is the first child, taking any text nodes into account that might come before it (i.e. if any elements come before, po
If, for some strange reason, you can make do with only supporting Gecko, you can use-moz-first-node selector to do this.
-moz-first-node
https://developer.mozilla.org/en-US/docs/Web/CSS/:-moz-first-node