Re: [paint] Publishing FPWD of Fill and Stroke Module

On Thu, Mar 16, 2017 at 10:12 AM, Amelia Bellamy-Royds
<amelia.bellamy.royds@gmail.com> wrote:
> The initial value of fill-color isn't backwards compatible.  It needs to be
> "black" to be compatible with the initial value of SVG fill.  But then that
> isn't backwards-compatible with regular CSS text rendering (which uses
> color).
>
> Options:
>
> give fill-color an `auto` value which equates to `black` for SVG elements
> and to `currentColor` elsewhere.
>
> add a separate text-rendering-mode property that determines whether to use
> basic text rendering (currentColor fill, stroke ignored) vs fill+stroke
> paint (and use the user stylesheet to switch mode for <svg> then switch it
> back for <foreignObject>).

We went for a third option (which we were planning to do, but forgot
to put in the spec): set fill-color to black for root svg elements in
the UA stylesheet.

~TJ and fantasai

Received on Thursday, 16 March 2017 17:47:54 UTC