| 1 |
<?xml version="1.0" standalone="no"?> |
| 2 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" |
| 3 |
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> |
| 4 |
|
| 5 |
<!-- |
| 6 |
|
| 7 |
Licensed to the Apache Software Foundation (ASF) under one or more |
| 8 |
contributor license agreements. See the NOTICE file distributed with |
| 9 |
this work for additional information regarding copyright ownership. |
| 10 |
The ASF licenses this file to You under the Apache License, Version 2.0 |
| 11 |
(the "License"); you may not use this file except in compliance with |
| 12 |
the License. You may obtain a copy of the License at |
| 13 |
|
| 14 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 15 |
|
| 16 |
Unless required by applicable law or agreed to in writing, software |
| 17 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 18 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 19 |
See the License for the specific language governing permissions and |
| 20 |
limitations under the License. |
| 21 |
|
| 22 |
--> |
| 23 |
|
| 24 |
<!-- ====================================================================== --> |
| 25 |
<!-- Test of the style element --> |
| 26 |
<!-- --> |
| 27 |
<!-- @author [email protected] --> |
| 28 |
<!-- @version $Id$ --> |
| 29 |
<!-- ====================================================================== --> |
| 30 |
|
| 31 |
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| 32 |
|
| 33 |
<svg id="body" width="450" height="500" viewBox="0 0 450 500" |
| 34 |
xmlns="http://www.w3.org/2000/svg" |
| 35 |
xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 36 |
|
| 37 |
<title>Test of CSS !important properties.</title> |
| 38 |
<text x="50%" y="50" class="title" |
| 39 |
>Test of CSS !important properties.</text> |
| 40 |
|
| 41 |
<style type="text/css"> |
| 42 |
.t1 { fill: green !important; fill: red } |
| 43 |
.t2 { fill: red !important; fill: green !important } |
| 44 |
.t3 { fill: yellow; } |
| 45 |
g > rect { fill: green !important; } |
| 46 |
|
| 47 |
.t4 { fill: green !important; } |
| 48 |
g > g > rect { fill: red !important; } |
| 49 |
text { text-anchor: middle; } |
| 50 |
</style> |
| 51 |
|
| 52 |
<rect class="t1" x="25" y="75" width="100" height="100" fill="blue"/> |
| 53 |
<text x="75" y="205">fill: green !important; fill: red</text> |
| 54 |
<rect class="t2" x="175" y="75" width="100" height="100" fill="blue"/> |
| 55 |
<text x="225" y="190">fill: red !important; fill: green !important</text> |
| 56 |
<rect x="325" y="75" width="100" height="100" |
| 57 |
fill="blue" style="fill:green"/> |
| 58 |
<text x="375" y="205">fill="blue" style="fill:green"</text> |
| 59 |
|
| 60 |
<rect class="t1" x="25" y="250" width="100" height="100" |
| 61 |
fill="blue" style="fill: purple"/> |
| 62 |
<text x="75" y="365">fill: green !important; fill: red</text> |
| 63 |
<g> |
| 64 |
<rect class="t3" x="175" y="250" width="100" height="100" fill="red"/> |
| 65 |
<text x="225" y="365">.t3 { fill: yellow; }<tspan x="225" dy="15" |
| 66 |
>g > rect { fill: green !important; }</tspan></text> |
| 67 |
<g> |
| 68 |
<rect class="t4" x="325" y="250" width="100" height="100" fill="blue"/> |
| 69 |
<text x="360" y="400">.t4 { fill: green !important; }<tspan x="360" dy="15" |
| 70 |
>g > g > rect { fill: red !important; }</tspan></text> |
| 71 |
</g> |
| 72 |
</g> |
| 73 |
|
| 74 |
</svg> |