Hey Jeff,

maybe what you need is

.italic, cite {
   font-style: italic;
}

.editorial {
   editorial styles

}

and then you've got <div class="editorial italic"> and <cite>book title</cite>.

Think about making the editorial font size at least 1em, so as to have mercy on your older & your low vision users. There's other ways, right?

Sandy

>> On 10 Sep 2020, at 10:54, Jeff Zeitlin >>
<edi...@freelancetraveller.com> wrote: >> >> 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 of text that are author's or >> editor's comments or clarifications of the associated article text. >> There are a few other classes that I use that set font-style: >> italic; as well. >> >> However, when a book title appears within already-italicised text, >> it should be set as "roman"/upright/non-italic. >> >> (Technically, if font-style: italic; is in effect, _any_ text that >> would be italicised if set among normal text should be set as >> non-italic.) >> >> Is there some relatively clean way of defining .booktitle such that >> if {font-style: italic;} or {font-style: oblique;} is currently in >> effect (whether from applying the em tag, or another style that >> sets italic, or inherited from a higher-level style application), I >> apply {font-style: normal;}, otherwise, I apply {font-style: >> italic;}? >> >> ("relatively clean": I want to avoid javascript, perl, etc., for >> Reasons.) -- Eönwë (SpamCop subscriber, not staff/admin) >> ______________________________________________________________________ >> >> 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/ > ______________________________________________________________________ > > 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/ --
Sandy
sandyfeldman.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/

Reply via email to