Revision control

Copy as Markdown

<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.2" baseProfile="tiny" xml:id="svg-root" width="100%" height="100%"
viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg"
<!--======================================================================-->
<!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, European Research Consortium for =-->
<!--= Informatics and Mathematics (ERCIM), Keio University). =-->
<!--= All Rights Reserved. =-->
<!--======================================================================-->
reviewer="CN" owner="VH" desc="property inheritance" status="accepted"
approved="yes"
version="$Revision: 1.6 $" testname="$RCSfile: struct-group-03-t.svg,v $">
<p>This test validates that properties are inherited (or not, depending on their defintion), from a group to its children.</p>
<p>The two rows displayed in this test should be identical. In the top row, each property is set to the value 'inherit'. In the bottom row, which is the reference, each property is set to the value that should be inherited in the top row.</p>
</d:OperatorScript>
</SVGTestCase>
<title xml:id="test-title">$RCSfile: struct-group-03-t.svg,v $</title>
<defs>
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
<font-face-src>
<font-face-uri xlink:href="../images/SVGFreeSans.svg#ascii" />
</font-face-src>
</font-face>
</defs>
<g xml:id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
<defs>
<rect xml:id="propertyCell" x="-5" y="-14" width="110" height="22" />
<rect xml:id="sampleCell" x="-5" y="-14" width="50" height="22" />
</defs>
<g xml:id="grid" transform="translate(70, 150) rotate(-90)" fill="none" stroke="black">
<use xlink:href="#propertyCell" />
<use xlink:href="#propertyCell" y="22" />
<use xlink:href="#propertyCell" y="44" />
<use xlink:href="#propertyCell" y="66" />
<use xlink:href="#propertyCell" y="88" />
<use xlink:href="#propertyCell" y="110" />
<use xlink:href="#propertyCell" y="132" />
<use xlink:href="#propertyCell" y="154" />
<use xlink:href="#propertyCell" y="176" />
<use xlink:href="#propertyCell" y="198" />
<use xlink:href="#propertyCell" y="220" />
<use xlink:href="#propertyCell" y="242" />
<use xlink:href="#propertyCell" y="264" />
<use xlink:href="#propertyCell" y="286" />
<use xlink:href="#propertyCell" y="308" />
<use xlink:href="#propertyCell" y="330" />
<use xlink:href="#propertyCell" y="352" />
<g transform="translate(-50, 0)">
<use xlink:href="#sampleCell" />
<use xlink:href="#sampleCell" y="22" />
<use xlink:href="#sampleCell" y="44" />
<use xlink:href="#sampleCell" y="66" />
<use xlink:href="#sampleCell" y="88" />
<use xlink:href="#sampleCell" y="110" />
<use xlink:href="#sampleCell" y="132" />
<use xlink:href="#sampleCell" y="154" />
<use xlink:href="#sampleCell" y="176" />
<use xlink:href="#sampleCell" y="198" />
<use xlink:href="#sampleCell" y="220" />
<use xlink:href="#sampleCell" y="242" />
<use xlink:href="#sampleCell" y="264" />
<use xlink:href="#sampleCell" y="286" />
<use xlink:href="#sampleCell" y="308" />
<use xlink:href="#sampleCell" y="330" />
<use xlink:href="#sampleCell" y="352" />
</g>
<g transform="translate(-100, 0)">
<use xlink:href="#sampleCell" />
<use xlink:href="#sampleCell" y="22" />
<use xlink:href="#sampleCell" y="44" />
<use xlink:href="#sampleCell" y="66" />
<use xlink:href="#sampleCell" y="88" />
<use xlink:href="#sampleCell" y="110" />
<use xlink:href="#sampleCell" y="132" />
<use xlink:href="#sampleCell" y="154" />
<use xlink:href="#sampleCell" y="176" />
<use xlink:href="#sampleCell" y="198" />
<use xlink:href="#sampleCell" y="220" />
<use xlink:href="#sampleCell" y="242" />
<use xlink:href="#sampleCell" y="264" />
<use xlink:href="#sampleCell" y="286" />
<use xlink:href="#sampleCell" y="308" />
<use xlink:href="#sampleCell" y="330" />
<use xlink:href="#sampleCell" y="352" />
</g>
</g>
<g xml:id="properties" transform="translate(70, 150) rotate(-90)">
<text>color</text>
<text y="22">display</text>
<text y="44">fill</text>
<text y="66">fill-rule</text>
<text y="88">stroke</text>
<text y="110">stroke-dasharray</text>
<text y="132">stroke-dashoffset</text>
<text y="154">stroke-linecap</text>
<text y="176">stroke-linejoin</text>
<text y="198">stroke-miterlimit</text>
<text y="220">stroke-width</text>
<text y="242">visibility</text>
<text y="264">font-family</text>
<text y="286">font-size</text>
<text y="308">font-style</text>
<text y="330">font-weight</text>
<text y="352">text-anchor</text>
</g>
<g xml:id="inheritGroup" transform="translate(56, 155)">
<g color="#0F0">
<rect x="3" y="10" width="16" height="32" fill="currentColor" />
</g>
<g display="none" transform="translate(22, 0)">
<rect x="3" y="10" width="16" height="32" display="inherit" />
</g>
<g fill="#0F0" transform="translate(44, 0)">
<rect x="3" y="10" width="16" height="32" fill="inherit" />
</g>
<g fill-rule="evenodd" transform="translate(66, 0)">
<polygon points="10.5,0 21,21 0,7 21,7 0,21" fill-rule="inherit" fill="#0F0" transform="translate(3, 15) scale(0.7)" />
</g>
<g stroke="#0F0" transform="translate(88, 0)">
<rect x="3" y="10" width="16" height="32" stroke="inherit" fill="none" />
</g>
<g stroke-dasharray="2 2 5 5" transform="translate(110, 0)">
<line x1="11" y1="5" x2="11" y2="40" stroke="#0F0" stroke-dasharray="inherit" stroke-width="2" />
</g>
<g stroke-dashoffset="4" transform="translate(132, 0)">
<line x1="11" y1="5" x2="11" y2="40" stroke="#0F0" stroke-dashoffset="inherit" stroke-dasharray="2 2 5 5" stroke-width="2" />
</g>
<g stroke-linecap="round" transform="translate(154, 0)">
<line x1="11" y1="10" x2="11" y2="40" stroke="#0F0" stroke-linecap="inherit" stroke-width="10" />
</g>
<g stroke-linejoin="round" transform="translate(176, 0)">
<polyline points="3,40 11,10 19,40" stroke="#0F0" stroke-linejoin="inherit" stroke-width="5" fill="none" />
</g>
<g stroke-miterlimit="1" transform="translate(198, 0)">
<polyline points="3,40 11,10 19,40" stroke="#0F0" stroke-miterlimit="inherit" stroke-width="5" fill="none" />
</g>
<g stroke-width="5" transform="translate(220, 0)">
<line x1="11" y1="10" x2="11" y2="40" stroke="#0F0" stroke-width="inherit" />
</g>
<g visibility="hidden" transform="translate(242, 0)">
<line x1="11" y1="10" x2="11" y2="40" stroke="#0F0" visibility="inherit" />
</g>
<g font-family="serif" transform="translate(264, 0)">
<text x="11" y="30" font-size="20" text-anchor="middle" font-family="inherit">A</text>
</g>
<g font-size="10" transform="translate(286, 0)">
<text x="11" y="30" font-size="inherit" text-anchor="middle" font-family="serif">A</text>
</g>
<g font-style="italic" transform="translate(308, 0)">
<text x="11" y="30" font-style="inherit" text-anchor="middle" font-size="20" font-family="serif">A</text>
</g>
<g font-weight="bold" transform="translate(330, 0)">
<text x="11" y="30" font-weight="inherit" text-anchor="middle" font-family="serif" font-size="20">A</text>
</g>
<g text-anchor="middle" transform="translate(352, 0)">
<text x="11" y="30" text-anchor="inherit" font-family="serif" font-size="20">A</text>
</g>
</g>
<g xml:id="referenceGroup" transform="translate(56, 205)">
<g>
<rect x="3" y="10" width="16" height="32" fill="#0F0" />
</g>
<g transform="translate(22, 0)">
<rect x="3" y="10" width="16" height="32" display="none" />
</g>
<g transform="translate(44, 0)">
<rect x="3" y="10" width="16" height="32" fill="#0F0" />
</g>
<g transform="translate(66, 0)">
<polygon points="10.5,0 21,21 0,7 21,7 0,21" fill-rule="evenodd" fill="#0F0" transform="translate(3, 15) scale(0.7)" />
</g>
<g transform="translate(88, 0)">
<rect x="3" y="10" width="16" height="32" stroke="#0F0" fill="none" />
</g>
<g stroke-dasharray="2 2 5 5" transform="translate(110, 0)">
<line x1="11" y1="5" x2="11" y2="40" stroke="#0F0" stroke-dasharray="inherit" stroke-width="2" />
</g>
<g transform="translate(132, 0)">
<line x1="11" y1="5" x2="11" y2="40" stroke="#0F0" stroke-dashoffset="4" stroke-dasharray="2 2 5 5" stroke-width="2" />
</g>
<g transform="translate(154, 0)">
<line x1="11" y1="10" x2="11" y2="40" stroke="#0F0" stroke-linecap="round" stroke-width="10" />
</g>
<g transform="translate(176, 0)">
<polyline points="3,40 11,10 19,40" stroke="#0F0" stroke-linejoin="round" stroke-width="5" fill="none" />
</g>
<g transform="translate(198, 0)">
<polyline points="3,40 11,10 19,40" stroke="#0F0" stroke-miterlimit="1" stroke-width="5" fill="none" />
</g>
<g transform="translate(220, 0)">
<line x1="11" y1="10" x2="11" y2="40" stroke="#0F0" stroke-width="5" />
</g>
<g transform="translate(242, 0)">
<line x1="11" y1="10" x2="11" y2="40" stroke="#0F0" visibility="hidden" />
</g>
<g transform="translate(264, 0)">
<text x="11" y="30" font-size="20" text-anchor="middle" font-family="serif">A</text>
</g>
<g transform="translate(286, 0)">
<text x="11" y="30" font-size="10" text-anchor="middle" font-family="serif">A</text>
</g>
<g transform="translate(308, 0)">
<text x="11" y="30" font-style="italic" text-anchor="middle" font-size="20" font-family="serif">A</text>
</g>
<g transform="translate(330, 0)">
<text x="11" y="30" font-weight="bold" text-anchor="middle" font-family="serif" font-size="20">A</text>
</g>
<g transform="translate(352, 0)">
<text x="11" y="30" text-anchor="middle" font-family="serif" font-size="20">A</text>
</g>
</g>
</g>
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
<text xml:id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
</g>
<rect xml:id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000" />
<!-- comment out this watermark once the test is approved -->
<!--<g xml:id="draft-watermark">
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1" />
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
</g>-->
</svg>