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

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 UTC