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

Re: Unscoped <style> found outside the <head>

From: Anne van Kesteren <annevk@opera.com>
Date: Sun, 27 May 2007 22:48:56 +0200
To: "HTML WG" <public-html@w3.org>
Message-ID: <op.tsz6rufv64w2qv@annevk-t60.oslo.opera.com>

On Sun, 27 May 2007 21:40:30 +0200, Kornel Lesinski <kornel@geekhood.net>  
wrote:
> Maybe <style scoped> should be allowed only as a first child of its  
> parent then?

That would make <style> no better than using style=... The whole point of  
having <style scoped> is that you can do

   <style scoped> p { font-size:12px } </style>
   <style media=screen scoped> p { font-size:12pt } </style>

or

   <style title="Pink!" scoped> * { color:pink } </style>
   <style title="Green!" scoped> * { color:green } </style>

(Please ignore the issues with the style sheets in the examples above.)


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Sunday, 27 May 2007 20:49:06 UTC

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