W3C home > Mailing lists > Public > public-html@w3.org > June 2007

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

From: Olivier GENDRIN <olivier.gendrin@gmail.com>
Date: Fri, 1 Jun 2007 13:37:04 +0200
Message-ID: <e2c275120706010437h1afccffx90322d91ad64401c@mail.gmail.com>
To: "Karl Dubost" <karl@w3.org>
Cc: "David Hyatt" <hyatt@apple.com>, "public-html@w3.org WG" <public-html@w3.org>

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

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:45 UTC