Re: [svgwg] context-value UA rules for OpenType are giving unexpected rendering / compat problems

> That is because it is used inside glyph, and glyph element would never know what context-value is before it is actually painted with a number from its environment.

Ah, good point. So letting the keyword inherit means that you can do all the style resolution *once* for each glyph, and not recalculate for each text span it is used in.

That makes sense, and shouldn't be a problem from a spec perspective. That's how `currentColor` is spec'd: inherits as a keyword, resolved when used.

I'd say the issue with transformations inside the font is more of an issue with the font itself.  It would affect *any* stroke being applied, regardless of whether it uses the default stroke width.  So the font either needs to add a `non-scaling-stroke` vector effect, or it needs to specifically cancel out any inherited stroke on parts of the graphic that shouldn't be stroked (or both).  This issue also exists for SVG icons instantiated with `<use>`, without having any nice scaling adjustment like `context-value`.

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/421#issuecomment-383347782 using your GitHub account

Received on Sunday, 22 April 2018 01:38:21 UTC