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: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 23 Aug 2010 00:32:37 -0700
Message-ID: <4C722415.4050300@inkedblade.net>
To: Doug Schepers <schepers@w3.org>
CC: public-fx@w3.org
On 08/21/2010 07:05 PM, Doug Schepers wrote:
> Hi, fantasai-
> fantasai wrote (on 8/21/10 7:28 PM):
>> 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.)

> Where would the right place to reference in the most recent appropriate
> draft of which CSS spec?

Reference CSS2.1.

Received on Monday, 23 August 2010 07:33:15 UTC

This archive was generated by hypermail 2.3.1 : Monday, 22 June 2015 03:33:44 UTC