W3C home > Mailing lists > Public > www-svg@w3.org > January 2013

Re: Porting fill/stroke (and -opacity variants) to plain CSS

From: Dirk Schulze <dschulze@adobe.com>
Date: Wed, 23 Jan 2013 13:01:30 -0800
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: www-svg <www-svg@w3.org>
Message-ID: <0E736D07-A51C-40FC-9C0D-CA5DBBEF0C8A@adobe.com>

On Jan 23, 2013, at 11:15 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:

> Heya SVGWG, in today's CSSWG call fantasai suggested, to solve another
> issue, porting SVG's fill and stroke properties to plain CSS, with
> them applying only to text.

I assume you mean that they apply to HTML as well here. They are CSS already :)

> 
> We'll look to existing SVG application of fill/stroke to <text>, and
> WebKit's use of their proprietary text-stroke and text-fill
> properties, to inform how they work.  We'll probably define them in
> the Text Decoration module.
> 
> Any issues you anticipate with that?

As discussed on IRC, making 'fill' and 'stroke' applicable to HTML might require (or not) a change to the initial value of 'fill' to 'none'. The UA style sheet would need to set the 'fill' property to 'black' for SVG elements. This is because the 'color' property sets the fill operation for text on HTML (A value of 'auto' was discussed as well, but seems unnecessary to me.)

The CSS Decoration spec should probably link to the property definitions on SVG2 (since they do a lot more then filling and stroking text there) and define how they work on text (SVG and HMTL).

Greetings,
Dirk

PS: Ironically a previous version of SVG had the initial value 'none' for fill before, until we changed it for SVG1.1SE to follow implementations IIRC.

> 
> ~TJ
> 
Received on Wednesday, 23 January 2013 21:02:25 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:54 GMT