W3C home > Mailing lists > Public > www-html@w3.org > January 2000

RE: Physical markup concept snag

From: Todd Fahrner <fahrner@pobox.com>
Date: Thu, 20 Jan 2000 11:24:50 -0800
Message-Id: <v04220803b4ad10c84293@[216.185.5.103]>
To: Karlsson Kent - keka <keka@im.se>, W3C HTML <www-html@w3.org>
At 8:10 PM +0100 1/20/00, Karlsson Kent - keka wrote:
>  > I think the main differnce is illustrated as follow.  Here
>  > I'm comparing
>  > <i> elments to <em> elements.
>  >
>  > <i> this is <i>nested italics</i></i>.
>  > <em> this is <em>nested emphisis</em></em>.
>  >
>  > In the first case, clearly everything should be in italics.
>  > In the second case, using <em>, the nested <em> data should
>  > be rendered in
>  > some other way, commonly a monospaced different font.
>
>TeX (for \em) toggles between italic and upright.
>How does one write a CSS style to get such toggling
>behaviour for <em>?

Contextual selectors, e.g.,:

em { font-style: italic }
em em { font-style: normal }
em em em { font-style: italic }
em em em em { font-style: normal }
/* and so on ad absurdam */

--
Todd Fahrner
Received on Thursday, 20 January 2000 14:25:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:41 GMT