| 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="CM" author="CL" status="reviewed" |
| 13 |
version="$Revision: 1.3 $" testname="$RCSfile: styling-css-10-f.svg,v $"> |
| 14 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG/styling.html#CaseSensitivity"> |
| 15 |
<p> |
| 16 |
Checks that stylesheets (style attributes, style elements, |
| 17 |
external style sheets) are case-insensitive, unlike presentational attributes. </p> |
| 18 |
|
| 19 |
<p>Subtest a checks that the invalid attribute |
| 20 |
FiLl is ignored. Subtest b checks that the style attribute is |
| 21 |
applied, the values being case-insensitive. Subtests c and d check |
| 22 |
the same for style elements and imported external style sheets. |
| 23 |
</p> |
| 24 |
</d:testDescription> |
| 25 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 26 |
<p> |
| 27 |
Run the test. No interaction required. |
| 28 |
</p> |
| 29 |
</d:operatorScript> |
| 30 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 31 |
<p> |
| 32 |
If any red shows, the test fails. If four orange circles are shown, |
| 33 |
the test passes and the user agent supports CSS style sheets. If |
| 34 |
the top two circles are orange while the bottom two are blue, and the user agent does |
| 35 |
not claim to support CSS style sheets, the test also passes. |
| 36 |
</p> |
| 37 |
</d:passCriteria> |
| 38 |
</d:SVGTestCase> |
| 39 |
<title id="test-title">$RCSfile: styling-css-10-f.svg,v $</title> |
| 40 |
<defs> |
| 41 |
<font-face |
| 42 |
font-family="SVGFreeSansASCII" |
| 43 |
unicode-range="U+0-7F"> |
| 44 |
<font-face-src> |
| 45 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 46 |
</font-face-src> |
| 47 |
</font-face> |
| 48 |
</defs> |
| 49 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 50 |
|
| 51 |
<g fill="orange"> |
| 52 |
<circle id="a" FiLl="red" cx="140" cy="100" r="50"/> |
| 53 |
</g> |
| 54 |
<circle id="b" fill="red" style="FiLl: oRaNgE" cx="340" cy="100" r="50"/> |
| 55 |
<circle id="c" fill="blue" cx="140" cy="220" r="50"/> |
| 56 |
<circle id="d" fill="blue" cx="340" cy="220" r="50"/> |
| 57 |
|
| 58 |
<style type="text/css"> |
| 59 |
@import url("../images/case-insensitivity.css"); |
| 60 |
#c {fill: red } |
| 61 |
#c {FiLl: oRaNgE } |
| 62 |
</style> |
| 63 |
|
| 64 |
</g> |
| 65 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 66 |
<text id="revision" x="10" y="340" stroke="none" |
| 67 |
fill="black">$Revision: 1.3 $</text> |
| 68 |
</g> |
| 69 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> |
| 70 |
<!-- comment out this watermark once the test is approved --> |
| 71 |
<g id="draft-watermark"> |
| 72 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 73 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 74 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 75 |
</g> |
| 76 |
</svg> |