| 1 |
<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"> |
| 2 |
<!--======================================================================--> |
| 3 |
<!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =--> |
| 4 |
<!--= Institute of Technology, European Research Consortium for =--> |
| 5 |
<!--= Informatics and Mathematics (ERCIM), Keio University). =--> |
| 6 |
<!--= All Rights Reserved. =--> |
| 7 |
<!--= See http://www.w3.org/Consortium/Legal/. =--> |
| 8 |
<!--======================================================================--> |
| 9 |
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" template-version="1.4" |
| 10 |
reviewer="ED" author="Microsoft" status="accepted" version="$Revision: 1.4 $" testname="$RCSfile: painting-control-06-f.svg,v $"> |
| 11 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/painting.html#VisibilityControl"> |
| 12 |
<p> |
| 13 |
Setting the 'visibility' property to 'hidden' on a 'g' tag will affect its children, unless the children of the 'g' tag override the parent setting. |
| 14 |
</p> |
| 15 |
<p> |
| 16 |
Have a 'g' tag with an red filled shape as a child. Set 'visibility: hidden' on the 'g' tag. Verify no red is on the page. |
| 17 |
Also, have a 'g' tag with a green filled shape as a child. Set 'visibility: hidden' on the 'g' tag. Set 'visibility: visible' on |
| 18 |
the child tag. Verify that the green 'rect' renders on the page. |
| 19 |
</p> |
| 20 |
</d:testDescription> |
| 21 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 22 |
<p> |
| 23 |
Run the test. No interaction required. |
| 24 |
</p> |
| 25 |
</d:operatorScript> |
| 26 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 27 |
<p> |
| 28 |
The test is passed if there are two green squares visible on the page, and no red. |
| 29 |
</p> |
| 30 |
</d:passCriteria> |
| 31 |
</d:SVGTestCase> |
| 32 |
<title id="test-title">$RCSfile: painting-control-06-f.svg,v $</title> |
| 33 |
<defs> |
| 34 |
<font-face |
| 35 |
font-family="SVGFreeSansASCII" |
| 36 |
unicode-range="U+0-7F"> |
| 37 |
<font-face-src> |
| 38 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 39 |
</font-face-src> |
| 40 |
</font-face> |
| 41 |
</defs> |
| 42 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 43 |
<rect x="96" y="96" width="96" height="96" fill="lime" /> |
| 44 |
<g visibility="hidden"> |
| 45 |
<rect x="96" y="96" width="96" height="96" fill="red" /> |
| 46 |
</g> |
| 47 |
<rect x="196.5" y="196.5" width="95" height="95" fill="red"/> |
| 48 |
<g visibility="hidden"> |
| 49 |
<rect x="196" y="196" width="96" height="96" fill="lime" visibility="visible" /> |
| 50 |
</g> |
| 51 |
</g> |
| 52 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 53 |
<text id="revision" x="10" y="340" stroke="none" |
| 54 |
fill="black">$Revision: 1.4 $</text> |
| 55 |
</g> |
| 56 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> |
| 57 |
<!-- comment out this watermark once the test is approved --> |
| 58 |
<!-- |
| 59 |
<g id="draft-watermark"> |
| 60 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 61 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 62 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 63 |
</g>--> |
| 64 |
</svg> |