W3C home > Mailing lists > Public > www-style@w3.org > December 1997

Re: body:first-char and specificity of selectors

From: Neil St.Laurent <neil@bigpic.com>
Date: Thu, 18 Dec 1997 11:30:10 -0600
Message-Id: <199712181820.LAA02181@underworld.bigpic.com>
To: "David Perrell" <davidp@earthlink.net>
CC: "Style" <www-style@w3.org>
> Any declarations on EM will override properties inherited from P. EM
> is a child of P. Inheritable properties applied to a pseudo-element
> may be inherited, the pseudo-element is not..

But there should be a way to override the EM rendering if the EM is 
part of a pseduo-element.

Consider:

P:first-letter { font-size: 2cm; }
EM { font-size: larger; }

<P><EM>Hello</EM> out there puts an EXTREME emphasis on the first 
letter of Hello, even though the EM would likely be happier with the 
2cm on it's first letter:

P:first-letter { font-size: 2cm; }
EM { font-size: larger; }
EM:first-letter { font-size: 2cm; }

__
| Mortar: Advanced Web Development <http://mortar.bigpic.com/>
| Neil St.Laurent                  <mailto:stlaurent@bigpic.com>
| Big Picture Multimedia
Received on Thursday, 18 December 1997 13:24:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:53 GMT