| 1 |
<svg id="svg-root" width="100%" height="100%" |
| 2 |
viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" |
| 3 |
xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 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/" |
| 12 |
template-version="1.4" reviewer="[reviewer]" author="ED" status="created" |
| 13 |
version="$Revision: 1.1 $" testname="$RCSfile: types-basic-02-f.svg,v $"> |
| 14 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/types.html#BasicDataTypes"> |
| 15 |
<p> |
| 16 |
Tests units and no units on <length> in CSS on a property defined in the SVG specification. |
| 17 |
</p> |
| 18 |
</d:testDescription> |
| 19 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 20 |
<p> |
| 21 |
Run the test. No interaction required. |
| 22 |
</p> |
| 23 |
</d:operatorScript> |
| 24 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 25 |
<p> |
| 26 |
The test is passed if there are six circles with the same thick green stroke visible, and no red. |
| 27 |
If the SVG user agent doesn't support CSS styling then this test does not apply. |
| 28 |
</p> |
| 29 |
</d:passCriteria> |
| 30 |
</d:SVGTestCase> |
| 31 |
<title id="test-title">$RCSfile: types-basic-02-f.svg,v $</title> |
| 32 |
<defs> |
| 33 |
<font-face |
| 34 |
font-family="SVGFreeSansASCII" |
| 35 |
unicode-range="U+0-7F"> |
| 36 |
<font-face-src> |
| 37 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 38 |
</font-face-src> |
| 39 |
</font-face> |
| 40 |
</defs> |
| 41 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 42 |
|
| 43 |
<style> |
| 44 |
#swNoUnit { stroke-width: 20 } |
| 45 |
#swUnit { stroke-width: 20px } |
| 46 |
#swUpperCaseUnit { stroke-width: 20PX } |
| 47 |
</style> |
| 48 |
|
| 49 |
<g id="references" fill="none" stroke="red" stroke-width="19"> |
| 50 |
<circle r="40" transform="translate(100 100)"/> |
| 51 |
<circle r="40" transform="translate(240 100)"/> |
| 52 |
<circle r="40" transform="translate(380 100)"/> |
| 53 |
|
| 54 |
<circle r="40" transform="translate(100 240)"/> |
| 55 |
<circle r="40" transform="translate(240 240)"/> |
| 56 |
<circle r="40" transform="translate(380 240)"/> |
| 57 |
</g> |
| 58 |
|
| 59 |
<!-- "For length values in SVG-specific properties and their corresponding presentation attributes, the length unit identifier is optional." --> |
| 60 |
<circle r="40" id="swNoUnit" fill="none" stroke="lime" transform="translate(100 100)"/> |
| 61 |
<circle r="40" id="swUnit" fill="none" stroke="lime" transform="translate(240 100)"/> |
| 62 |
<circle r="40" id="swPresAttr" fill="none" stroke="lime" stroke-width="20" transform="translate(380 100)"/> |
| 63 |
|
| 64 |
<!-- "In presentation attributes for all properties, whether defined in this specification or in CSS2, the length identifier, if specified, must be in lower case." --> |
| 65 |
<g stroke-width="20"> |
| 66 |
<circle r="40" id="swUpperCaseUnitPresAttr" stroke-width="10PX" fill="none" stroke="blue" transform="translate(100 240)"/> |
| 67 |
</g> |
| 68 |
|
| 69 |
<!-- Test that units are case-insensitive when specified in CSS --> |
| 70 |
<circle r="40" id="swUpperCaseUnit" fill="none" stroke="lime" transform="translate(240 240)"/> |
| 71 |
<circle r="40" id="swUpperCaseUnitInline" style="stroke-width:20PX" fill="none" stroke="lime" transform="translate(380 240)"/> |
| 72 |
</g> |
| 73 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 74 |
<text id="revision" x="10" y="340" stroke="none" |
| 75 |
fill="black">$Revision: 1.1 $</text> |
| 76 |
</g> |
| 77 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> |
| 78 |
<!-- comment out this watermark once the test is approved --> |
| 79 |
<g id="draft-watermark"> |
| 80 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 81 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 82 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 83 |
</g> |
| 84 |
</svg> |