Re: Scoped style element questions Re: Unscoped <style> found outside the <head>

On 5/29/07, Karl Dubost <karl@w3.org> wrote:
> <div class="parent">
>      content 1
>      <style scope="">
>       some CSS rules
>      </style>
>      content 2
>      <div class="child">
>      content 3
>      </div>
> </div>
>
> Issues:
>
> * everything inside div.parent
>      - including div.parent?
>      - excluding div.parent?
> * what's happening with a rule like:
>      style {display: block;
>          background:red;}
> * Is an empty element a parent?

And what about body, head css target ? How to handle a scoped
body{background: #fff} ?

If we make an analogy with a full documents, we could consider that a
scoped html applies to the parent element of <style>, and that body
applies to the sibblings (they can also be targeted by usual
selectors).

And what about external stylesheets ? <style> should have a @src
element that could be scoped.

-- 
Olivier G.
http://www.lespacedunmatin.info/blog/

Received on Friday, 1 June 2007 11:55:42 UTC