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 `AllanReceived 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