[css-d] 'Reversing' attributes?

2020-09-10 Thread Jeff Zeitlin
Normally, the title of a book should be set in italics. I'm a big fan of semantics, so I have a class called "booktitle": .booktitle { font-style: italic; } I also have a class called "editorial": .editorial { font-size: 0.8em; font-style: italic; } which I use for setting blocks

Re: [css-d] 'Reversing' attributes?

2020-09-10 Thread Tom Livingston
Hi Jeff, I would probably do something like this: .italic .booktitle{ font-style: normal;} Unless I'm missing a more complicated issue. Hope that helps a bit. On Thu, Sep 10, 2020, 5:54 AM Jeff Zeitlin wrote: > Normally, the title of a book should be set in italics. I'm a big fan of > semant

Re: [css-d] 'Reversing' attributes?

2020-09-10 Thread Eric A. Meyer
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 scena

Re: [css-d] 'Reversing' attributes?

2020-09-10 Thread Eric A. Meyer
On 10 Sep 2020, at 10:20, Eric A. Meyer wrote: 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