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

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

From: Karl Dubost <karl@w3.org>
Date: Tue, 29 May 2007 09:52:33 +0900
Message-Id: <283E9365-0404-42C0-BB9B-5A855AA64C13@w3.org>
Cc: "public-html@w3.org WG" <public-html@w3.org>
To: David Hyatt <hyatt@apple.com>


Le 27 mai 2007 à 17:13, David Hyatt a écrit :
> This behavior is clearly what Web authors think happens now when  
> they misuse <style> in random spots in the middle of the document.   
> They just think they've thrown some extra rules into the page that  
> will apply to following content.  They don't think that it will  
> retroactively apply to previous content in the page.


If I understand the two proposals so far.

* Dave Hyatt is saying only what comes after the style element is  
styled, i.e. "content 2" and "div.child"
* Others: everything inside div.parent is styled.

<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?


<div class="parent">
     <img src="foo" alt="bar">

     <style scope="">
      some CSS rules
     </style>

     content 2

     <div class="child">
     content 3
     </div>

</div>


-- 
Karl Dubost - http://www.w3.org/People/karl/
W3C Conformance Manager, QA Activity Lead
   QA Weblog - http://www.w3.org/QA/
      *** Be Strict To Be Cool ***
Received on Tuesday, 29 May 2007 00:52:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:15:59 GMT