Re: [css3-selectors] inheriting ::selection pseudo style

forgive me if I'm wrong as I honestly haven't a clue what you are  
trying to intimate.

however:

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

appears to have overlapping div and span elements, would:

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

suit the purpose better?

cheers

Jonathan Chetwynd



On 15 Aug 2006, at 02:11, Ian Hickson wrote:


On Tue, 9 May 2006, Allan Sandfeld Jensen wrote:
>
> 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.

I think it would be the first. Can anyone come up with text that  
describes
how exactly this should work, including interaction with ::first-letter
and ::first-line? (David?)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 15 August 2006 18:16:44 UTC