W3C home > Mailing lists > Public > www-style@w3.org > May 2006

[css3-selectors] inheriting ::selection pseudo style

From: Allan Sandfeld Jensen <kde@carewolf.com>
Date: Tue, 9 May 2006 00:47:45 +0200
To: www-style@w3.org
Message-Id: <200605090047.46124.kde@carewolf.com>

Section 7.3. The ::selection pseudo-element

The sections about the pseudo-elements ::first-letter and ::first-line explain 
in detail how they are inherited. Unfortunately this part is skipped in 
the ::selection part. 
Especially interesting is if child styles can overrule parent ::selection 
style (and also if ::first-letter or ::first-line can overrule ::selection 
styles).

So is it:
<div>
<span>This text has part of it 
<div::selection><span::selection>selected</div::selection></span::selection>
</span>
</div>

Or does it like ::first-line "split" the children:

<div>
<span>This text has part of it</span>
<div::selection><span><span::selection>selected</span::selection></span></div::selection>
<div>

In a way the later seems more natural, just really hard to write with 
pseudo-markup.

Regards
`Allan
Received on Monday, 8 May 2006 22:47:53 GMT

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