| 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.3 $" testname="$RCSfile: pservers-grad-23-f.svg,v $"> |
| 12 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://dev.w3.org/SVG/profiles/1.1F2/publish/pservers.html#Gradients"> |
| 13 |
<p> |
| 14 |
<!--[[ |
| 15 |
Properties do not inherit from elements referencing 'linearGradient' or 'radialGradient' elements. |
| 16 |
]]--> |
| 17 |
</p> |
| 18 |
<p> |
| 19 |
<!--[[ |
| 20 |
Specify a 'stop-color' attribute equal to 'red' on a 'g' element ancestor of a 'rect' element. Specify a 'linearGradient' with a single |
| 21 |
'stop' that has a 'stop-color' of 'inherit'. Reference the 'linearGradient' from the 'rect' element and verify that the 'rect' is not red. |
| 22 |
Repeat the same process with a sibling 'rect' element referencing a 'radialGradient' element. |
| 23 |
]]--> |
| 24 |
</p> |
| 25 |
</d:testDescription> |
| 26 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 27 |
<p> |
| 28 |
Run the test. No interaction required |
| 29 |
</p> |
| 30 |
<p> |
| 31 |
<!--[[ |
| 32 |
|
| 33 |
]]--> |
| 34 |
</p> |
| 35 |
</d:operatorScript> |
| 36 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 37 |
<p> |
| 38 |
<!--[[ |
| 39 |
Test passes if there is no red visible on the page. |
| 40 |
]]--> |
| 41 |
</p> |
| 42 |
</d:passCriteria> |
| 43 |
</d:SVGTestCase> |
| 44 |
<title id="test-title">$RCSfile: pservers-grad-23-f.svg,v $</title> |
| 45 |
<defs> |
| 46 |
<font-face |
| 47 |
font-family="SVGFreeSansASCII" |
| 48 |
unicode-range="U+0-7F"> |
| 49 |
<font-face-src> |
| 50 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 51 |
</font-face-src> |
| 52 |
</font-face> |
| 53 |
</defs> |
| 54 |
<g id="test-body-content" font-size="18"> |
| 55 |
<defs> |
| 56 |
<linearGradient id="testLinear" stop-color="inherit"> |
| 57 |
<stop offset="100%" stop-color="inherit" /> |
| 58 |
</linearGradient> |
| 59 |
<radialGradient id="testRadial" stop-color="inherit"> |
| 60 |
<stop offset="100%" stop-color="inherit" /> |
| 61 |
</radialGradient> |
| 62 |
</defs> |
| 63 |
<g stop-color="red"> |
| 64 |
<rect x="30" y="30" width="100" height="100" fill="url(#testLinear)" stop-color="inherit" /> |
| 65 |
<rect x="150" y="30" width="100" height="100" fill="url(#testRadial)" stop-color="inherit" /> |
| 66 |
</g> |
| 67 |
|
| 68 |
</g> |
| 69 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 70 |
<text id="revision" x="10" y="340" stroke="none" |
| 71 |
fill="black">$Revision: 1.3 $</text> |
| 72 |
</g> |
| 73 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> |
| 74 |
<!-- comment out this watermark once the test is approved --> |
| 75 |
<g id="draft-watermark"> |
| 76 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 77 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 78 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 79 |
</g> |
| 80 |
</svg> |