CSS(3) has descendent selectors, e.g. td em {color: red};
, but no ancestor selector, apparently.
So, what should I do instead of something like td {border: 1pt solid red} em;
? i.e., how can I set a style on ancestors of some (X)HTML element?
Note:
- Javascript is not relevant for the workaround, something XPath'y might be.