-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow setting the SVG context properties when in an HTML <img> tag #348
Comments
Note that |
We don't currently expose any way for properties to inherit down into a separate document (which is what an But this use-case is what the SVG Parameters work was supposed to solve. It got dropped, unfortunately. |
It's also what an SVG-in-OpenType font glyph is, but we've got multiple implementations using the But we first need to figure out all the bugs about contexts and font glyphs. (I'd also still like to see a more generic SVG Parameters feature, but we at least have implementations to build on with |
Not blocking updated 2.0 CR publication - assigning 2.1 WD milestone |
Right now, there is no standard way to set the
fill
andstroke
properties of an SVG inside an HTML<img>
tag.The SVG 2 specification has context properties (
context-fill
andcontext-stroke
) that are set to thefill
andstroke
properties of the rendering context. The rendering context is currently only set when the SVG is imported into another SVG using the SVG<use>
tag.Mozilla Firefox currently has the non-standard vendor prefixed
-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
andstroke
SVG properties when the SVG is in an<img>
tag, I request that something to do this be added to the specification.The text was updated successfully, but these errors were encountered: