W3C home > Mailing lists > Public > www-style@w3.org > August 2011

Re: [selectors4] prefixed?

From: Brian Kardell <bkardell@gmail.com>
Date: Thu, 4 Aug 2011 14:18:06 -0400
Message-ID: <CADC=+jfMP3KHxNcRwDcu2uN+pRvdgn46tQggbEJd3ACEifXjRA@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: www-style@w3.org
Has anyone ever suggested an actual extensibility mechanism for
selectors like this?  It's pretty trivial in jquery and looking at
webkit code at least it seems like the basic idea is not so far off.
Maybe just an attribute specifying one or more urls for plug-ins and
then when a prefixed, unknown pseudo is encountered you could call out
to the checker - obviously that may be slower than the compiled ones
but given its position, this is more or less a simple test that merely
says whether or not the rule should be applied.

Something like that would allow people to shim very useful ideas (like
-web-nth-match) or even develop new ones and see what the uptake is
way earlier and with way less commitment from the browser
manufacturers.


-Brian

On Thu, Aug 4, 2011 at 12:54 PM, fantasai <fantasai.lists@inkedblade.net> wrote:
> On 08/04/2011 05:24 AM, Brian Kardell wrote:
>>
>> I noticed that there is a section a section about experimental
>> selectors...
>> I'm assuming that this idea would only hold up for pseudos but it doesn't
>> say
>> that.  Can someone offer any more?
>
> Fixed. Thanks for pointing that out. :)
>  http://dev.w3.org/csswg/selectors4/#conformance
>
> ~fantasai
>
>
Received on Thursday, 4 August 2011 18:18:33 GMT

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