W3C home > Mailing lists > Public > public-svg-issues@w3.org > November 2018

[svgwg] 'stop-color' property resolving with 'inherit' value

From: Evgeniy Reizner via GitHub <sysbot+gh@w3.org>
Date: Sun, 11 Nov 2018 21:55:37 +0000
To: public-svg-issues@w3.org
Message-ID: <issues.opened-379567561-1541973336-sysbot+gh@w3.org>
RazrFalcon has just created a new issue for https://github.com/w3c/svgwg:

== 'stop-color' property resolving with 'inherit' value ==
>From the spec, it's not clear when an `inherit` resolving should stop. According to the results below, I can assume that for `defs` it should stop on the `defs` child itself, but it's not clear.

Is it specified in the spec somewhere?

[`stop-color` in SVG 1.1](https://www.w3.org/TR/SVG11/pservers.html#StopColorProperty)
[`stop-color` in SVG 2](https://svgwg.org/svg2-draft/pservers.html#StopColorProperty)


<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
    <g stop-color="green">
            <linearGradient id="lg1">
                <stop offset="0" stop-color="yellow"/>
                <stop offset="1" stop-color="inherit"/>

    <rect x="20" y="20" width="160" height="160" fill="url(#lg1)"/>

    <rect x="1" y="1" width="198" height="198" fill="none" stroke="black"/>




I'm asking about `stop-color` specifically, because for other properties it works fine. For example this will be resolved to green in all applications:

    <g fill="green">
            <mask id="mask1">
                <rect id="rect1" x="20" y="20" width="160" height="160" fill="inherit"/>

Please view or discuss this issue at https://github.com/w3c/svgwg/issues/588 using your GitHub account
Received on Sunday, 11 November 2018 21:55:39 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 11 November 2018 21:55:40 UTC