Re: Opera's Proposal for :context Selector

* 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 UTC