Re: Opera's Proposal for :context Selector

I much prefer something like :

    selector1 {
        @rule selector2 { // or @me or @context or somewhat else
            ...
        }
    }

Similar to :

    selector1 selector2 {
        ...
    }

* Sample :

    ul, ol {
        @me > li { ...  }
        @me > li:hover { ... }
        @me > li.hidden { ... }
        ...
        border: left;
        ...
    }

Similar to :

    ul, ol { border: left; ... }
    ul > li, ol > li { ... }
    ul > li:hover, ol > li:hover { ... }
    ul > li.hidden, ol > li.hidden { ... }
    ...

Fremy
--------------------------------------------------
From: "Lachlan Hunt" <lachlan.hunt@lachy.id.au>
Sent: Thursday, July 10, 2008 10:03 PM
To: "www-style" <www-style@w3.org>
Subject: Opera's Proposal for :context Selector

>
> Hi,
>   This is a proposal for a new :context pseudo-class designed to match the 
> context node of a query, where the the scope of elements that match a 
> given Selector is constrained to be within a subtree rooted by a 
> particular node.
>
> This proposal has been developed based on work within the Web Application 
> Working Group.  It has been designed primarily for use with Selectors API 
> to meet the needs of JavaScript libraries such as JQuery and Dojo, but is 
> also suitable for use with scoped stylesheets in HTML5.
>
> I am prepared to be the editor of this specification and, if necessary, 
> join the CSS WG in order to do so, or it could be worked on within the 
> WebApps WG under advise from the CSS WG.
>
> The proposal can be found here:
>
> http://lists.w3.org/Archives/Public/www-archive/2008Jul/att-0019/Overview.html
>
> -- 
> Lachlan Hunt - Opera Software
> http://lachy.id.au/
> http://www.opera.com/
> 

Received on Saturday, 12 July 2008 12:13:53 UTC