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

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

From: Cameron McCormack <cam@mcc.id.au>
Date: Thu, 24 Jan 2013 10:23:06 +1100
Message-ID: <510070DA.8060706@mcc.id.au>
To: Dirk Schulze <dschulze@adobe.com>
CC: "Tab Atkins Jr." <jackalmage@gmail.com>, www-svg <www-svg@w3.org>
On 24/01/13 9:36 AM, Dirk Schulze wrote:
> Here is a blog post about these properties:
>
> https://www.webkit.org/blog/85/introducing-text-stroke/

Thanks.

That post is not exactly clear about what "not set" means for 
text-fill-color.  Presumably it has an initial value of currentColor.

In SVG at the moment we have these initial values:

   fill: black
   stroke: none
   stroke-width: 1px

while these properties are:

   text-fill-color: currentColor
   text-stroke-color: currentColor
   text-stroke-width: 0

How do we reconcile these?  As you said in your other mail, the initial 
value of fill needs to be black (or something that acts like black) 
since there exists content like

   <svg xmlns="http://www.w3.org/2000/svg">
     <rect width="100" height="100"/>
   </svg>

expecting to get a black rect.

(Aside: paint-order will be useful with non-SVG text with this, btw.)
Received on Wednesday, 23 January 2013 23:23:04 GMT

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