[svgwg] Allow setting the SVG context properties when in an HTML <img> tag

ExE-Boss has just created a new issue for https://github.com/w3c/svgwg:

== Allow setting the SVG context properties when in an HTML <img> tag ==
Right now, there is no standard way to set the `fill` and `stroke` properties of an SVG inside an HTML &lt;img&gt; tag.

The SVG 2 specification has context properties (`context-fill` and `context-stroke`) that are set to the `fill` and `stroke` properties of the rendering context. The rendering context is currently only set when the SVG is imported into another SVG using the SVG &lt;use&gt; tag.

Mozilla Firefox currently has the non-standard vendor prefixed [`-moz-context-properties`](https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-context-properties) CSS property to do this, but other browsers don’t currently have any suitable equivalent.

For inter-operability with other browsers and to make it possible to control the `fill` and `stroke` SVG properties when the SVG is in an &lt;img&gt; tag, I request that something to do this be added to the specification.

Please view or discuss this issue at https://github.com/w3c/svgwg/issues/348 using your GitHub account

Received on Thursday, 5 October 2017 23:59:20 UTC