context-fill, context-stroke not working if set on a group in a marker
Steps to reproduce:
- open Inkscape
- open marker-context-fill-on-group.svg (which uses the 2nd and 3rd last marker options in 1.1.x)
What happened?
- Bounding box larger than stroke, but no marker visible. This is because these markers define fill as
fill:context-strokebut this is set on a group, rather than on paths- If you apply it to each circle separately, it works.
- If you change it to
fill:greeninstead, it also works
- Here's a code snippet to make it more clear what is happening
<marker
orient="auto"
refY="0"
refX="0"
id="InfiniteLineStart"
inkscape:stockid="InfiniteLineStart"
style="overflow:visible"
inkscape:isstock="true">
<g
transform="translate(-13,0)"
style="fill:context-stroke"
id="g1391">
<circle
cx="3"
cy="0"
r="0.8"
id="circle1385" />
<circle
cx="6.5"
cy="0"
r="0.8"
id="circle1387" />
<circle
cx="10"
cy="0"
r="0.8"
id="circle1389" />
</g>
</marker>
What should have happened?
context-fill should still use the context fill (I think).
Relevant specs: https://www.w3.org/TR/SVG2/painting.html#TermContextElement
Sample attachments: marker-context-fill-on-group.svg
Debug info
Inkscape 1.1 (4674306a, 2021-06-05), Inkscape 1.2-dev (cb5af3f7, 2021-06-28) Linux Mint 20
Edited by Nathan Lee