[svgwg] Issue: Define "context" for SVG-in-OpenType glyphs marked as SVG2

AmeliaBR has just labeled an issue for https://github.com/w3c/svgwg as "SVG2":

== Define "context" for SVG-in-OpenType glyphs ==
The SVG spec defines the ["context element"](https://svgwg.org/svg2-draft/painting.html#TermContextElement) for the `context-fill` and `context-stroke` keywords. However, it doesn't include the case of the context element for font glyphs, where the context element should be the element in the document that is using the font for text rendering.  We probably assumed that [the OpenType spec](https://docs.microsoft.com/en-gb/typography/opentype/spec/svg#glyph-rendering) would define it, but it doesn't explicitly, instead referring back to SVG 2.

User agents that support SVG in OpenType fonts (Edge, Firefox, Illustrator) are all consistent about this behavior so it is stable enough to include in SVG 2.0.  (Of course, we still need to get implementation commitments for using these keywords *outside* of fonts, but that's another issue.)

See https://github.com/w3c/svgwg/issues/462

Received on Thursday, 17 May 2018 20:04:08 UTC