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

> Are there areas in the spec that clearly define the expected behavior as we move forward with SVG in HTML? I think that we need to think of it beyond foreign content and more like stylable, scriptable, vector graphics integrated into web pages.

I was going to make some such testcases for Tony at Microsoft...  (while this issue was being discussed in the meantime here)... but I could post it on the list instead?
 


----------------------------------------
> From: patd@microsoft.com
> To: ian@hixie.ch; tonyschr@microsoft.com
> CC: kevinar18@hotmail.com; www-svg@w3.org
> Subject: RE: How does the svg element handle CSS border and background-color?
> Date: Mon, 23 Aug 2010 23:37:01 +0000
>
> Hi Ian,
>
> At the last SVG Face to Face, we were debating how and where to answer these questions about SVG embedded in HTML. I am not sure from your answer below whether you intend to visit this in the HTML working group, or whether you expect us to define this within the SVG Working Group.
>
> At the very least, at the SVG Face-to-Face, a few vendors agreed to push some tests up somewhere so we could make sure we agree on the scenarios to start.
>
> Are there areas in the spec that clearly define the expected behavior as we move forward with SVG in HTML? I think that we need to think of it beyond foreign content and more like stylable, scriptable, vector graphics integrated into web pages.
>
> Patrick Dengler
>
>
> -----Original Message-----
> From: www-svg-request@w3.org [mailto:www-svg-request@w3.org] On Behalf Of Ian Hickson
> Sent: Saturday, August 21, 2010 11:22 AM
> To: Tony Schreiner
> Cc: Kevin Ar18; www-svg@w3.org
> Subject: RE: How does the svg element handle CSS border and background-color?
>
> On Thu, 19 Aug 2010, Tony Schreiner wrote:
> >
> > I strongly disagree with Jeff's interpretation of the spec. I have yet
> > to find the behavior clearly spelled out in any combination of specs
> > but the HTML5 spec says the following:
> >
> > "The svg element from the SVG namespace falls into the embedded
> > content, phrasing content, and flow content categories for the
> > purposes of the content models in this specification."
> >
> > Between this, working with our own CSS experts, and working from first
> > principles with the long-term future of SVG in mind, I've understood
> > this to mean that when an element is embedded in HTML5 or XHTML,
> > that outermost element does participate in the box model, and as such
> > CSS formatting such as backgrounds, borders, margin, and padding
> > should apply to that outermost SVG element, just like it would to a
> > 
, ,  		 	   		  

Received on Tuesday, 24 August 2010 00:09:27 UTC