| 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" reviewer="CM" author="Microsoft" status="reviewed" version="$Revision: 1.4 $" testname="$RCSfile: struct-cond-overview-02-f.svg,v $"> |
| 10 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://dev.w3.org/SVG/profiles/1.1F2/publish/struct.html#ConditionalProcessingOverview"> |
| 11 |
<p> |
| 12 |
Test that 'use' instances of elements with failing conditional processing attributes are not rendered. |
| 13 |
</p> |
| 14 |
<p> |
| 15 |
Six blue 'rect' elements are defined. For each conditional processing attribute, a black 'rect' element is defined with that particular conditional |
| 16 |
processing attribute set to an arbitrary string that would cause the attribute's requirement test to fail. Each of the black 'rect' elements is |
| 17 |
positioned so that it would completely cover the blue 'rect' if it were visible. A corresponding 'use' element is defined for each black 'rect' |
| 18 |
and is positioned such that it would cover the remaining three blue 'rect' elements. The six blue 'rect' elements should be visible. |
| 19 |
</p> |
| 20 |
</d:testDescription> |
| 21 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 22 |
<p>Run the test. No interaction required.</p> |
| 23 |
</d:operatorScript> |
| 24 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 25 |
<p> |
| 26 |
The test passes if six blue boxes are visible on the page. |
| 27 |
</p> |
| 28 |
</d:passCriteria> |
| 29 |
</d:SVGTestCase> |
| 30 |
<title id="test-title">$RCSfile: struct-cond-overview-02-f.svg,v $</title> |
| 31 |
<defs> |
| 32 |
<font-face |
| 33 |
font-family="SVGFreeSansASCII" |
| 34 |
unicode-range="U+0-7F"> |
| 35 |
<font-face-src> |
| 36 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 37 |
</font-face-src> |
| 38 |
</font-face> |
| 39 |
</defs> |
| 40 |
<g id="test-body-content" font-size="18"> |
| 41 |
<rect width="100" height="100" fill="blue" /> |
| 42 |
<rect width="100" height="100" id="testRequiredFeatures" requiredFeatures="INVALID_FEATURE_STRING" /> |
| 43 |
<rect x="200" width="100" height="100" fill="blue" /> |
| 44 |
<use x="200" xlink:href="#testRequiredFeatures" /> |
| 45 |
<rect y="120" width="100" height="100" fill="blue" /> |
| 46 |
<rect y="120" width="100" height="100" id="testRequiredExtensions" requiredExtensions="INVALID_EXTENSION_STRING" /> |
| 47 |
<rect y="120" x="200" width="100" height="100" fill="blue" /> |
| 48 |
<use x="200" xlink:href="#testRequiredExtensions" /> |
| 49 |
<rect y="240" width="100" height="100" fill="blue" /> |
| 50 |
<rect y="240" width="100" height="100" id="testSystemLanguage" systemLanguage="INVALID_LANGUAGE_STRING" /> |
| 51 |
<rect y="240" x="200" width="100" height="100" fill="blue" /> |
| 52 |
<use x="200" xlink:href="#testSystemLanguage" /> |
| 53 |
</g> |
| 54 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 55 |
<text id="revision" x="10" y="340" stroke="none" |
| 56 |
fill="black">$Revision: 1.4 $</text> |
| 57 |
</g> |
| 58 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> |
| 59 |
<!-- comment out this watermark once the test is approved --> |
| 60 |
<g id="draft-watermark"> |
| 61 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 62 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 63 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 64 |
</g> |
| 65 |
</svg> |