styling-css-02-b-isvalid.html (3523B)
1 <!DOCTYPE html> 2 <html lang='en'> 3 <head> 4 <title>styling-css-02-b-manual.svg</title> 5 <meta charset='utf-8'> 6 </head> 7 <body> 8 <h1>Source SVG: styling-css-02-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-02-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 <style> 33 #one, #two { fill: green } 34 [transform="scale(2)"] { fill: green } 35 #x [points] { fill: green } 36 </style> 37 </defs> 38 <!-- ====================================================================== --> 39 <!-- ID selectors selectors ============================================== --> 40 <!-- ====================================================================== --> 41 <text style="font-size:12px;" x="40" y="36"> 42 id selectors: 43 </text> 44 <g style="fill: green"> 45 <circle cx="160" cy="100" r="30"/> 46 <polygon points="300,100, 320,120, 340,110, 360,120, 390,90, 340,70"/> 47 </g> 48 <g style="fill: red"> 49 <rect id="one" x="220" y="80" width="60" height="40"/> 50 </g> 51 <!-- ====================================================================== --> 52 <!-- attribute selectors ================================================= --> 53 <!-- ====================================================================== --> 54 <g transform="translate(0, 150)"> 55 <text style="font-size:12px;" x="40" y="36"> 56 attribute selectors: 57 </text> 58 59 <g style="fill: red" id="x"> 60 <circle transform="scale(2)" cx="80" cy="50" r="15"/> 61 <rect id="two" x="220" y="80" width="60" height="40"/> 62 <polygon points="300,100, 320,120, 340,110, 360,120, 390,90, 340,70"/> 63 </g> 64 </g> 65 </g> 66 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> 67 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text> 68 </g> 69 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> 70 <!-- comment out this watermark once the test is approved --> 71 <!--<g id="draft-watermark"> 72 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> 73 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" 74 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> 75 </g>--> 76 </svg> 77 </body> 78 </html>