Debian Codegraph @

test_non_regression/svg/struct-cond-overview-05-f.svg

raw
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 <!--= SVG 1.1 2nd Edition Test Case =-->
4 <!--======================================================================-->
5 <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
6 <!--= Institute of Technology, European Research Consortium for =-->
7 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
8 <!--= All Rights Reserved. =-->
9 <!--= See http://www.w3.org/Consortium/Legal/. =-->
10 <!--======================================================================-->
11 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" template-version="1.4" reviewer="[reviewer]" author="Microsoft" status="created" version="$Revision: 1.2 $" testname="$RCSfile: struct-cond-overview-05-f.svg,v $">
12 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://dev.w3.org/SVG/profiles/1.1F2/publish/struct.html#ConditionalProcessingOverview">
13 <p>
14 Elements whose parent elements have failing conditional processing attributes are able to be referenced and rendered by 'use' elements.
15 </p>
16 <p>
17 Define three 'rect' elements that have a 'g' parent with either an invalid 'requiredFeature', 'requiredExtension', or 'systemLanguage'.
18 Then define three 'use' elements that reference the 'rect' elements. Verify that the 'use' elements render.
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 Test passes if there is no red visible on the page.
29 </p>
30 </d:passCriteria>
31 </d:SVGTestCase>
32 <title id="test-title">$RCSfile: struct-cond-overview-05-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-size="18">
43 <g requiredFeatures="INVALID_FEATURE_STRING">
44 <rect width="100" height="100" id="testRequiredFeatures" />
45 </g>
46 <rect x="200" width="100" height="100" fill="red" />
47 <use x="200" xlink:href="#testRequiredFeatures" />
48 <g requiredExtensions="INVALID_EXTENSION_STRING">
49 <rect y="120" width="100" height="100" id="testRequiredExtensions" />
50 </g>
51 <rect y="120" x="200" width="100" height="100" fill="red" />
52 <use x="200" xlink:href="#testRequiredExtensions" />
53 <g systemLanguage="INVALID_LANGUAGE_STRING">
54 <rect y="240" width="100" height="100" id="testSystemLanguage" />
55 </g>
56 <rect y="240" x="200" width="100" height="100" fill="red" />
57 <use x="200" xlink:href="#testSystemLanguage" />
58 </g>
59 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
60 <text id="revision" x="10" y="340" stroke="none"
61 fill="black">$Revision: 1.2 $</text>
62 </g>
63 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
64 <!-- comment out this watermark once the test is approved -->
65 <g id="draft-watermark">
66 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
67 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
68 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
69 </g>
70 </svg>