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

Re: Style elements in SVG content

From: Erik Dahlstrom <ed@opera.com>
Date: Mon, 13 Feb 2012 10:04:54 +0100
To: www-svg@w3.org
Message-ID: <op.v9l0ugtxgeuyw5@localhost.localdomain>
On Thu, 09 Feb 2012 18:17:05 +0100, Boris Zbarsky <bzbarsky@mit.edu> wrote:

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

That's how the SVG <style> element works as well I believe, though points  
1 and 2 could be made more clear in the spec.

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

The WG has resolved to align svg <style> with html <style> for SVG2, see  

Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed
Received on Monday, 13 February 2012 09:05:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:34 UTC