tkormann 01/10/11 08:23:45
Added: samples/tests cssMediaList.css cssMediaList.svg
Log:
Add a new test for CSS media (using one CSS file and the @media rule).
Revision Changes Path
1.1 xml-batik/samples/tests/cssMediaList.css
Index: cssMediaList.css
===================================================================
@media all {
.all {
visibility: visible;
}
}
@media aural {
.aural {
visibility: visible;
}
}
@media braille {
.braille {
visibility: visible;
}
}
@media embossed {
.embossed {
visibility: visible;
}
}
@media handheld {
.handheld {
visibility: visible;
}
}
@media print {
.print {
visibility: visible;
}
}
@media projection {
.projection {
visibility: visible;
}
}
@media screen {
.screen {
visibility: visible;
}
}
@media tty {
.tty {
visibility: visible;
}
}
@media tv {
.tv {
visibility: visible;
}
}
1.1 xml-batik/samples/tests/cssMediaList.svg
Index: cssMediaList.svg
===================================================================
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<!-- ========================================================================= -->
<!-- Copyright (C) The Apache Software Foundation. All rights reserved. -->
<!-- -->
<!-- This software is published under the terms of the Apache Software License -->
<!-- version 1.1, a copy of which has been included with this distribution in -->
<!-- the LICENSE file. -->
<!-- ========================================================================= -->
<!-- ========================================================================= -->
<!-- Alternate stylesheets -->
<!-- -->
<!-- @author [EMAIL PROTECTED] -->
<!-- @version $Id: cssMediaList.svg,v 1.1 2001/10/11 15:23:45 tkormann Exp $ -->
<!-- ========================================================================= -->
<?xml-stylesheet type="text/css" href="test.css" ?>
<?xml-stylesheet type="text/css" href="cssMediaList.css" ?>
<svg width="450" height="500" viewBox="0 0 450 500">
<title>CSS Media</title>
<!-- ============================================================= -->
<!-- Test content -->
<!-- ============================================================= -->
<g id="testContent">
<text x="225" y="50" class="title">CSS Media 2</text>
<text x="20" y="80" style="font-size:12; text-anchor:start">
<tspan>Show which CSS media is taken into account</tspan>
<tspan x="20" dy="14">Choose your media using the 'Edit=>Preference' menu
item.</tspan>
</text>
<defs>
<polyline id="check" points="-5 -5 0 0 5 -10" style="stroke:crimson;
fill:none; stroke-width:2;" />
</defs>
<g transform="translate(150 140)" style="stroke:black; fill:none">
<rect x="0" y="0" width="150" height="20" />
<rect x="0" y="20" width="150" height="20" />
<rect x="0" y="40" width="150" height="20" />
<rect x="0" y="60" width="150" height="20" />
<rect x="0" y="80" width="150" height="20" />
<rect x="0" y="100" width="150" height="20" />
<rect x="0" y="120" width="150" height="20" />
<rect x="0" y="140" width="150" height="20" />
<rect x="0" y="160" width="150" height="20" />
<rect x="0" y="180" width="150" height="20" />
<line x1="100" y1="0" x2="100" y2="200" />
<g style="font-size:12; text-anchor:start; stroke:none; fill:black">
<text x="10" y="14" >all</text>
<text x="10" y="34" >aural</text>
<text x="10" y="54" >braille</text>
<text x="10" y="74" >embossed</text>
<text x="10" y="94" >handheld</text>
<text x="10" y="114" >print</text>
<text x="10" y="134" >projection</text>
<text x="10" y="154" >screen</text>
<text x="10" y="174" >tty</text>
<text x="10" y="194" >tv</text>
</g>
<g style="visibility: hidden">
<use xlink:href="#check" x="125" y="15" class="all" />
<use xlink:href="#check" x="125" y="35" class="aural" />
<use xlink:href="#check" x="125" y="55" class="braille" />
<use xlink:href="#check" x="125" y="75" class="embossed" />
<use xlink:href="#check" x="125" y="95" class="handheld" />
<use xlink:href="#check" x="125" y="115" class="print" />
<use xlink:href="#check" x="125" y="135" class="projection" />
<use xlink:href="#check" x="125" y="155" class="screen" />
<use xlink:href="#check" x="125" y="175" class="tty" />
<use xlink:href="#check" x="125" y="195" class="tv" />
</g>
</g>
</g>
<!-- ============================================================= -->
<!-- Batik sample mark -->
<!-- ============================================================= -->
<use xlink:href="../batikLogo.svg#Batik_Tag_Box" />
</svg>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]