W3C home > Mailing lists > Public > www-svg@w3.org > February 2012

Re: Style elements in SVG content

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 09 Feb 2012 12:17:05 -0500
Message-ID: <4F33FF91.3030506@mit.edu>
To: www-svg@w3.org
On 2/9/12 11:46 AM, Stephen Chenney wrote:
> Referencing the html style element is not helpful in answering these
> questions, is its restriction to the document head avoids most of the
> issues

The restriction to <head> is an authoring requirement.  HTML's UA 
requirements define processing of <style> no matter where it is found.

To answer your questions, for the HTML <style> element:

1)  All style elements are global.
2)  Stylesheets from such elements come in document order in the
     cascade.
3)  The CSS cascade handles everything else.

SVG could in fact adopt these rules, as well as the "scoped" attribute 
for scoping if desired...

-Boris
Received on Thursday, 9 February 2012 17:17:34 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:50 GMT