| 1 |
<?xml version="1.0" standalone="no"?> |
| 2 |
<!-- |
| 3 |
|
| 4 |
Licensed to the Apache Software Foundation (ASF) under one or more |
| 5 |
contributor license agreements. See the NOTICE file distributed with |
| 6 |
this work for additional information regarding copyright ownership. |
| 7 |
The ASF licenses this file to You under the Apache License, Version 2.0 |
| 8 |
(the "License"); you may not use this file except in compliance with |
| 9 |
the License. You may obtain a copy of the License at |
| 10 |
|
| 11 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 12 |
|
| 13 |
Unless required by applicable law or agreed to in writing, software |
| 14 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 15 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 |
See the License for the specific language governing permissions and |
| 17 |
limitations under the License. |
| 18 |
|
| 19 |
--> |
| 20 |
<!-- ====================================================================== --> |
| 21 |
<!-- Test for the color functions introduced with SVG Color 1.2 --> |
| 22 |
<!-- http://www.w3.org/TR/SVGColor12 --> |
| 23 |
<!-- --> |
| 24 |
<!-- @version $Id$ --> |
| 25 |
<!-- ====================================================================== --> |
| 26 |
|
| 27 |
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| 28 |
|
| 29 |
<svg id="body" width="450" height="500" viewBox="0 0 450 500" |
| 30 |
xmlns="http://www.w3.org/2000/svg" version="1.2" |
| 31 |
xmlns:xlink="http://www.w3.org/1999/xlink" > |
| 32 |
|
| 33 |
<title>SVG Color 1.2 Test</title> |
| 34 |
|
| 35 |
<!-- ============================================================= --> |
| 36 |
<!-- Test content --> |
| 37 |
<!-- ============================================================= --> |
| 38 |
<defs/> |
| 39 |
|
| 40 |
<g id="testContent" class="legend" style="text-anchor:middle"> |
| 41 |
<text x="225" y="40" class="title"> |
| 42 |
SVG Color 1.2 Functions (Device-specific Colors) |
| 43 |
</text> |
| 44 |
|
| 45 |
<g stroke="black" stroke-width="2" transform="translate(35, 90)"> |
| 46 |
|
| 47 |
<rect y="0" width="40" height="40" fill="#FF0000 device-gray(0.4)"/> |
| 48 |
|
| 49 |
<rect y="60" width="40" height="40" fill="#FF0000 device-rgb(153, 153, 122)"/> |
| 50 |
|
| 51 |
<rect y="120" width="40" height="40" fill="#FF0000 device-cmyk(0.0,0.0,0.2,0.4)"/> |
| 52 |
|
| 53 |
<rect y="180" width="40" height="40" fill="#FF0000 device-nchannel(0.5,1.0)"/> |
| 54 |
|
| 55 |
</g> |
| 56 |
|
| 57 |
<!-- |
| 58 |
Unsupported color functions or missing profiles will result in the boxes appearing |
| 59 |
red meaning that the sRGB fallback was used. All but the second box of the four |
| 60 |
should be a darker yellow. |
| 61 |
--> |
| 62 |
|
| 63 |
<g text-anchor="start" transform="translate(90, 110)"> |
| 64 |
<text y="0"> |
| 65 |
<tspan>#FF0000 device-gray(0.4)</tspan> |
| 66 |
<tspan x="0" dy="12">Gray where device-specific colors are supported, red otherwise.</tspan> |
| 67 |
</text> |
| 68 |
<text y="60"> |
| 69 |
<tspan>#FF0000 device-rgb(153, 153, 122)</tspan> |
| 70 |
<tspan x="0" dy="12">Khaki where device-specific colors are supported, red otherwise.</tspan> |
| 71 |
</text> |
| 72 |
<text y="120"> |
| 73 |
<tspan>#FF0000 device-cmyk(0.0,0.0,0.2,0.4)</tspan> |
| 74 |
<tspan x="0" dy="12">Khaki where device-specific colors are supported, red otherwise.</tspan> |
| 75 |
</text> |
| 76 |
<text y="180"> |
| 77 |
<tspan>#FF0000 device-nchannel(0.5,1.0)</tspan> |
| 78 |
<tspan x="0" dy="12">Some device-dependent color where device-specific colors are</tspan> |
| 79 |
<tspan x="0" dy="12">supported, red otherwise.</tspan> |
| 80 |
</text> |
| 81 |
</g> |
| 82 |
</g> |
| 83 |
|
| 84 |
<!-- ============================================================= --> |
| 85 |
<!-- Batik sample mark --> |
| 86 |
<!-- ============================================================= --> |
| 87 |
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| 88 |
</svg> |