I am trying to find a CSS selector that can help me distinguish between <var> tags in these two different usage modes:
<p><var>Foo</var></p>
and
<p>Some text <var>Foo</var> and more text</p>
Basically, if var has a sibling that is the text node, I need it differently in a different way. Suggestions?
css css-selectors
mpeters
source share