Debian Codegraph @

samples/tests/spec/styling/cssMedia.svg

raw
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 <!-- Alternate stylesheets -->
25 <!-- -->
26 <!-- @author [email protected] -->
27 <!-- @version $Id$ -->
28 <!-- ========================================================================= -->
29
30 <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
31 <?xml-stylesheet type="text/css" href="../../resources/style/cssMediaScreen.css" media="screen"?>
32 <?xml-stylesheet type="text/css" href="../../resources/style/cssMediaProjection.css" media="projection"?>
33 <?xml-stylesheet type="text/css" href="../../resources/style/cssMediaPrint.css" media="print"?>
34
35 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="450" height="500" viewBox="0 0 450 500">
36 <title>CSS Media</title>
37
38 <!-- ============================================================= -->
39 <!-- Test content -->
40 <!-- ============================================================= -->
41 <g id="testContent">
42 <text x="225" y="50" class="title">CSS Media</text>
43
44 <text x="20" y="80" style="font-size:12; text-anchor:start">
45 <tspan>Demonstrate how a slide can be different depending on the CSS media.</tspan>
46 <tspan x="20" y="94">Choose your media using the 'Edit=>Preference' menu item.</tspan>
47 <tspan x="20" y="108">You can switch between 'screen', 'print' or 'projection'</tspan>
48 </text>
49
50 <defs>
51 <pattern id="stripes" patternUnits="userSpaceOnUse" x="0" y="0" width="188" height="4">
52 <rect width="188" height="2" fill="black" fill-opacity=".2" />
53 </pattern>
54
55 <linearGradient id="backgroundGradient" x2="1" y2="0">
56 <stop offset="0" stop-color="rgb(125, 72, 255)" />
57 <stop offset=".25" stop-color="rgb(124, 65, 239)" />
58 <stop offset="1" stop-color="black" />
59 </linearGradient>
60 <linearGradient id="lineGradient" x2="1" y2="0">
61 <stop offset="0" stop-color="black" />
62 <stop offset=".75" stop-color="rgb(124, 65, 239)" />
63 <stop offset="1" stop-color="rgb(125, 72, 255)" />
64 </linearGradient>
65 </defs>
66
67 <g>
68
69 <!-- #################################### -->
70 <!-- background -->
71 <!-- #################################### -->
72 <rect class="background" x="10" y="130" width="430" height="300" />
73
74 <g class="fancyBackground">
75 <rect x="10" y="180" width="50" height="250" style="fill:url(#backgroundGradient)" />
76 <rect x="10" y="180" width="50" height="250" style="fill:url(#stripes)" />
77 <rect x="10" y="180" width="430" height="4" style="fill:url(#backgroundGradient)" />
78 </g>
79
80 <!-- #################################### -->
81 <!-- slide content -->
82 <!-- #################################### -->
83 <g class="sectionTitle">
84 <text x="30" y="160">What is SVG?</text>
85
86 <g>
87 <text x="30" y="210">* Stands for Scalable Vector Graphics</text>
88 <text x="30" y="285">* An XML grammar for defining vector-based 2D graphics</text>
89 <text x="30" y="360">* W3C Recommendation - 4 Sept. 2001</text>
90 </g>
91 </g>
92
93 <!-- #################################### -->
94 <!-- slide text -->
95 <!-- #################################### -->
96 <g class="sectionContent">
97
98 <text x="50" y="230">
99 <tspan>The specification defines the features and syntax for Scalable Vector Graphics (SVG),</tspan>
100 <tspan x="50" dy="12">a language for describing two-dimensional vector and mixed vector/raster graphics</tspan>
101 <tspan x="50" dy="12">in XML.</tspan>
102 </text>
103
104 <text x="50" y="305">
105 <tspan>SVG is a language for describing two-dimensional graphics in XML [XML10].</tspan>
106 <tspan x="50" dy="12">SVG allows for three types of graphic objects: vector graphic shapes, images</tspan>
107 <tspan x="50" dy="12">and text.</tspan>
108 </text>
109
110 <text x="50" y="380">
111
112 <tspan>This document has been reviewed by W3C Members and other interested parties and</tspan>
113 <tspan x="50" dy="12">has been endorsed by the Director as a W3C Recommendation. It is a stable</tspan>
114 <tspan x="50" dy="12">document and may be used as reference material or cited as a normative reference</tspan>
115 <tspan x="50" dy="12">from another document.</tspan>
116
117 </text>
118 </g>
119
120 </g>
121
122 </g>
123
124 <!-- ============================================================= -->
125 <!-- Batik sample mark -->
126 <!-- ============================================================= -->
127 <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
128
129 </svg>