Re: Style elements in SVG content

Boris Zbarsky:
> 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...

Yep, we recently agreed to do this for SVG2:

http://www.w3.org/Graphics/SVG/WG/wiki/SVG2_Requirements_Input#Add_HTML5_style-element_attributes_to_SVG.27s_style_element

Received on Sunday, 12 February 2012 06:45:32 UTC