W3C home > Mailing lists > Public > public-fx@w3.org > July to September 2010

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

From: Kevin Ar18 <kevinar18@hotmail.com>
Date: Mon, 23 Aug 2010 12:19:13 -0400
Message-ID: <SNT110-W54BB7FBFF54206F34C990AA820@phx.gbl>
CC: <public-fx@w3.org>

> >> I would just say that the <svg> element is considered a replaced
> >> element as far as its surrounding contents are concerned, and any
> >> CSS values set on it apply exactly as if applied to a replaced
> >> element. And note that in some cases those values may also affect
> >> the SVG, e.g. 'color' will inherit into the SVG content.
> >
> > Would this apply equally for both referenced SVG and inline SVG?
> 
> Yes. CSS should be handling both exactly the same. (The SVG, given
> the additional style information, might behave slightly differently
> within its viewport, however.)

To be clear I am referring to the svg element (not object, embed, image, etc...)
 
As far as I can tell, HTML5 does not consider the SVG element to be this kind of replaced content: http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#replaced-elements
 
hmm that might completely change the logic my earlier argument/post I made
 
 
> 
> > Where would the right place to reference in the most recent appropriate
> > draft of which CSS spec?
> 
> Reference CSS2.1.
> http://www.w3.org/TR/CSS21/conform.html#replaced-element
> 
> ~fantasai
> 
 		 	   		  
Received on Monday, 23 August 2010 16:19:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 August 2010 16:19:46 GMT