ARTICLE AD BOX
I am the webmaster of a site that has been ... evolving ... over time, as I've learned more about HTML and CSS. Unfortunately, the site is quite large, and updating the older pages is a project that I'm doing piecemeal as I have time. I do, however, now have site-wide CSS, and new pages are (mostly) consistent, and generally easier to update than the older pages.
I have several classes that impose font-style: italic; on text, but I also have some places where instead of using one of those classes, the em tag was used directly. In some places, I have one of those italicising classes nested within either one of the other classes or the em tag. What I'd like to do is adjust those classes such that IF the class is used within already italicised text, it sets font-style: normal; instead - essentially something like .classname [inherited-font-style=italic] {font-style: normal; }. This way, I don't have to work out all the possibilities of .class1 .class2 or .class em or em .class to accomplish what I'd like.
Is there some way to do this, preferably without having to invoke a CSS preprocessor or javascript?
