W3C home > Mailing lists > Public > public-appformats@w3.org > August 2006

Re: [XBL2] Problems with 3.3: Loading Style Sheets

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 17 Aug 2006 23:55:11 +0000 (UTC)
To: Anne van Kesteren <annevk@opera.com>
Cc: Lachlan Hunt <lachlan.hunt@lachy.id.au>, public-appformats@w3.org
Message-ID: <Pine.LNX.4.62.0608172353070.25313@dhalsim.dreamhost.com>

On Thu, 17 Aug 2006, Anne van Kesteren wrote:
> On Thu, 17 Aug 2006 16:47:20 -0700, Ian Hickson <ian@hixie.ch> wrote:
> > If a style _element_ is in error, it is ignored. However, having bad
> > children doesn't make it in error, it makes its children in error.
> 
> I would actually prefer having
> 
>  <style>
>   body { background:aqua }
>   <style>
>    body { background:blue }
>   </style>
>  </style>
> 
> work identical in HTML and XBL.

The <style> element in XBL has very little similarly to the element in 
HTML -- for example, it applies to shadow trees, not to the document it is 
in (modulo certain attributes), it doesn't have an entry in the CSSOM, it 
doesn't support alternate stylesheets, doesn't have a media attribute, 
etc.

The current model in XBL basically just requires the UA to find the first 
<resources> element, then walk its <style> elements. Allowing things like 
nested <style> elements, or <style> elements in places other than direct 
children of <resources>, would massively complicate the processing model.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 17 August 2006 23:55:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:10:20 GMT