styling-css-01-b-isvalid.html (3551B)
1 <!DOCTYPE html> 2 <html lang='en'> 3 <head> 4 <title>styling-css-01-b-manual.svg</title> 5 <meta charset='utf-8'> 6 </head> 7 <body> 8 <h1>Source SVG: styling-css-01-b-manual.svg</h1> 9 <svg version="1.1" baseProfile="basic" id="svg-root" 10 width="100%" height="100%" viewBox="0 0 480 360" 11 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 12 <!--======================================================================--> 13 <!--= SVG 1.1 2nd Edition Test Case =--> 14 <!--======================================================================--> 15 <!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =--> 16 <!--= Institute of Technology, European Research Consortium for =--> 17 <!--= Informatics and Mathematics (ERCIM), Keio University). =--> 18 <!--= All Rights Reserved. =--> 19 <!--= See http://www.w3.org/Consortium/Legal/. =--> 20 <!--======================================================================--> 21 22 <title id="test-title">$RCSfile: styling-css-01-b.svg,v $</title> 23 <defs> 24 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> 25 <font-face-src> 26 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> 27 </font-face-src> 28 </font-face> 29 </defs> 30 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> 31 <defs> 32 <defs> 33 <style> 34 rect { fill: green } 35 .warning { fill: green } 36 .bar {fill: green} 37 </style> 38 </defs> 39 </defs> 40 <!-- ====================================================================== --> 41 <!-- Element (GI) selectors =============================================== --> 42 <!-- ====================================================================== --> 43 44 <text style="font-size:12px;" x="40" y="36"> 45 element selectors: 46 </text> 47 48 <circle cx="160" cy="100" r="30" fill="green"/> 49 <g style="fill: red"> 50 <rect x="220" y="80" width="60" height="40"/> 51 </g> 52 <polygon points="300,100, 320,120, 340,110, 360,120, 390,90, 340,70" fill="green"/> 53 54 <!-- ====================================================================== --> 55 <!-- class selectors =============================================== --> 56 <!-- ====================================================================== --> 57 <g transform="translate(0, 150)"> 58 59 <text style="font-size:12px;" x="40" y="36"> 60 class selectors: 61 </text> 62 63 <g style="fill: red"> 64 <circle class="warning" cx="160" cy="100" r="30"/> 65 <rect x="220" y="80" width="60" height="40"/> 66 <polygon class="foo bar baz" points="300,100, 320,120, 340,110, 360,120, 390,90, 340,70"/> 67 </g> 68 </g> 69 </g> 70 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> 71 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text> 72 </g> 73 <rect id="test-frame" style="fill: none;stroke:#000" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> 74 <!-- comment out this watermark once the test is approved --> 75 <!--<g id="draft-watermark"> 76 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> 77 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" 78 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> 79 </g>--> 80 </svg> 81 </body> 82 </html>