blob: be1f378bf820b42770d3f8c89ccd2cbe250e6b4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<svg id="svg-root"
width="100%" height="100%" viewBox="0 0 480 360"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:html="http://www.w3.org/1999/xhtml">
<g id="testmeta">
<title>Paint: 'context-fill' and 'context-stroke' vis-a-vis 'currentcolor'</title>
<html:link rel="author"
title="Stefan Zager"
href="mailto:szager@chromium.org"/>
<html:link rel="help"
href="https://www.w3.org/TR/SVG2/painting.html#SpecifyingPaint"/>
<html:link rel="match" href="paint-context-003-ref.svg"/>
</g>
<defs>
<g id="g" color="green">
<rect width="100" height="100" fill="context-fill" stroke="context-stroke"/>
</g>
</defs>
<g id="test-body-content" color="red" style="stroke-width:15px">
<use x="25" y="25" href="#g" stroke="none" fill="currentcolor"/>
<use x="150" y="25" href="#g" stroke="currentcolor" fill="none"/>
</g>
</svg>
|