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

(unknown charset) Re: UA's implementation of ::selection

From: (unknown charset) L. David Baron <dbaron@dbaron.org>
Date: Sat, 15 May 2010 10:24:24 -0700
To: (unknown charset) David Hyatt <hyatt@apple.com>
Cc: (unknown charset) Fran├žois REMY <fremycompany_pub@yahoo.fr>, Boris Zbarsky <bzbarsky@MIT.EDU>, www-style@w3.org
Message-ID: <20100515172424.GA17317@pickering.dbaron.org>
On Saturday 2010-05-15 12:19 -0500, David Hyatt wrote:
> #mydiv {
>   selection: find-in-page(myfindstyle) selection(myselectedtextstyle);
> }
> 
> I kind of like the idea of having only one pseudo element for each
> unique appearance you'd like to apply to any selection in the
> whole document.  Having the pseudo elements be singletons off the
> document root is very efficient, and then inheritance of all the
> selection types is handled using the same model as everything else
> in CSS.

Properties that accept value lists like that are a disaster in terms
of cascading.  We could never implement spellcheck or find-in-page
using a mechanism like that since the page would break it the second
it tried to style any other type of selection.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Saturday, 15 May 2010 17:25:20 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:27 GMT