blob: 8a8a378488c818430f2cb21648c33b78655df33a [file] [log] [blame]
<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'</title>
<html:link rel="author"
title="Tavmjong Bah"
href="http://tavmjong.free.fr"/>
<html:link rel="help"
href="https://www.w3.org/TR/SVG2/painting.html#SpecifyingPaint"/>
<html:link rel="match" href="paint-context-002-ref.svg" />
</g>
<style id="test-font" type="text/css">
/* Standard Font (if needed). */
@font-face {
font-family: FreeSans;
src: url("../fonts/FreeSans.woff") format("woff");
}
text {
font-family: FreeSans, sans-serif;
text-anchor: middle;
fill: black;
}
#title {
font-size: 24px;
}
.label {
font-size: 18px;
}
</style>
<defs>
<rect id="rectangle" width="120" height="120" style="fill:context-stroke;stroke:context-fill" />
</defs>
<g id="test-body-content" font-size="16" style="fill:blue;stroke:lime;stroke-width:15px">
<use xlink:href="#rectangle" transform="translate(60,120)"/>
<use xlink:href="#rectangle" transform="translate(300,120)" style="fill:green;stroke:lightblue"/>
</g>
</svg>