On 10 Sep 2020, at 8:51, Tom Livingston wrote:
I would probably do something like this:
.italic .booktitle{ font-style: normal;}
Unless I'm missing a more complicated issue.
This is, in general, the best answer CSS offers-- set up contextual
selectors that cover the known and forecast scenarios where it's needed,
and style accordingly. There might be preprocessor extensions/mixins/et
al. that make Jeff's original request easier, and if so I'd love to hear
about them.
There was a proposal at one point to create "cyclic" selection in CSS
where you could alternate a property's values from one to another
exactly as Jeff was hoping to do, but it was so long ago (and so ignored
by browsers) that I can't remember the exact terms that were used to
describe it, and so can't find any references online. If anyone here
remembers that proposal more clearly, I'd also love to hear.
--
Eric A. Meyer - http://meyerweb.com/
______________________________________________________________________
css-discuss [css-d@css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/