- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Wed, 08 Sep 2010 18:10:36 -0700
- To: Simon Fraser <smfr@me.com>
- CC: "www-style@w3.org list" <www-style@w3.org>
On 09/08/2010 05:36 PM, Simon Fraser wrote:
> What should be the rendering of the following?
>
> <style>
> div:first-letter { font-size: 24pt; }
> p:first-letter { color: red; }
> </style>
> <div><p>Text</p></div>
>
> Does the 'T' render in a 24pt font or not?
Yes.
> I don't see anything at <http://www.w3.org/TR/CSS2/selector.html#first-letter>
> that suggests one rendering over another.
See the example containing
<p><div:first-letter><p:first-letter>T</...></...>he first text.
The "fictional tag sequences" in the spec are there to show how inheritance works.
In this case the div:first-letter font-size inherits through to the p:first-letter.
~fantasai
Received on Thursday, 9 September 2010 01:11:11 UTC