W3C home > Mailing lists > Public > www-svg@w3.org > August 2010

RE: How does the svg element handle CSS border and background-color?

From: Kevin Ar18 <kevinar18@hotmail.com>
Date: Wed, 18 Aug 2010 17:34:31 -0400
Message-ID: <SNT110-W37F801E157B7F47275AA1DAA9D0@phx.gbl>
To: <www-svg@w3.org>

Those properties are not applicable to SVG elements. See the list of CSS properties that can be applied to SVG elements here: http://www.w3.org/TR/2010/WD-SVG11-20100622/styling.html#SVGStylingProperties

That is what I thought.  However, the problem area is putting the svg tag inside an html5 document.  You can then apply background-color, borders, etc....
Several questions:
* Should the HTML5 spec forbid applying non-svg properties to the svg element when embedded in an html5 document?  (I'm not sure if this would work though)
* Should the CSS properties be allowed, but with special conditions? 		 	   		  
Received on Wednesday, 18 August 2010 21:35:04 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:22 UTC