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

Re: Opera's Proposal for :context Selector

From: David Håsäther <hasather@gmail.com>
Date: Fri, 11 Jul 2008 22:45:36 +0200
To: "Andrew Fedoniouk" <news@terrainformatica.com>
Cc: www-style <www-style@w3.org>
Message-ID: <op.ud5amar8p8frts@hasather.net>

* Andrew Fedoniouk @2008-07-11 22:21:

>> CSS can be used with other markup languages than HTML.
>>
> Correct.
>
> But in context when you have to use :root in selectors you *always* know
> what DOM you are dealing with.

No, that would make :root pretty useless. It's primary use case is rather  
the opposite.

> Example, following implies that you are targeting HTML:
>
>    :root > body > something {}

Certainly not. Any markup language may define an element type with the  
name "body".

-- 
David Håsäther
Received on Friday, 11 July 2008 20:46:14 GMT

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