W3C home > Mailing lists > Public > www-style@w3.org > July 2008

Re: Opera's Proposal for :context Selector

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 11 Jul 2008 13:30:49 +0200
To: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Cc: www-style <www-style@w3.org>
Message-ID: <brfe74dtvrs18k7hmb2n9ngfuv4u4vv6p4@hive.bjoern.hoehrmann.de>

* Lachlan Hunt wrote:
>When I first drafted it, I did try to do something like that.  But the 
>problem is that for selecors api, the context element needs to be 
>determined based upon which node the methods are invoked on, and for 
>scoped stylesheets, it's the parent of the style element.  I failed to 
>find any other way to define it clearly enough that would work for each 
>case.  If you could more clearly explain how else I can do it, that 
>would help a lot.

Could you explain why those other specifications are a concern at all,
and you can't just say the :context pseudo-class matches an element if
and only if some other specification identifies it as the context ele-
ment in a given selector evaluation context?
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Friday, 11 July 2008 11:31:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:10 GMT