masking-path-12-f-isvalid.html (3215B)
1 <!DOCTYPE html> 2 <html lang='en'> 3 <head> 4 <title>masking-path-12-f-manual.svg</title> 5 <meta charset='utf-8'> 6 </head> 7 <body> 8 <h1>Source SVG: masking-path-12-f-manual.svg</h1> 9 <svg id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 10 <!--======================================================================--> 11 <!--= SVG 1.1 2nd Edition Test Case =--> 12 <!--======================================================================--> 13 <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =--> 14 <!--= Institute of Technology, European Research Consortium for =--> 15 <!--= Informatics and Mathematics (ERCIM), Keio University). =--> 16 <!--= All Rights Reserved. =--> 17 <!--= See http://www.w3.org/Consortium/Legal/. =--> 18 <!--======================================================================--> 19 20 <title id="test-title">$RCSfile: masking-path-12-f.svg,v $</title> 21 <defs> 22 <font-face 23 font-family="SVGFreeSansASCII" 24 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 <g display="table"> 32 <clipPath id="testClip" display="inherit"> 33 <rect x="100" y="100" width="50" height="50" display="inherit" /> 34 </clipPath> 35 </g> 36 37 <rect id="pass" x="200" y="100" width="50" height="50" fill="green"/> 38 <rect id="fail" x="200" y="100" width="50" height="50" fill="red"/> 39 40 <script><![CDATA[ 41 try 42 { 43 var test = document.getElementById("testClip"); 44 var testChild = test.firstChild.nextSibling; 45 var testAppliedStyle = document.defaultView.getComputedStyle(test, null).getPropertyValue("display"); 46 var testChildAppliedStyle = document.defaultView.getComputedStyle(testChild, null).getPropertyValue("display"); 47 var testExpectedStyle = "table"; 48 if((testAppliedStyle == testExpectedStyle) && (testChildAppliedStyle == testExpectedStyle)) 49 { 50 document.getElementById("fail").setAttribute("display", "none"); 51 } 52 } 53 catch(ex) 54 { 55 //alert('ERROR: ' + ex.message); 56 }]]> 57 </script> 58 </g> 59 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> 60 <text id="revision" x="10" y="340" stroke="none" 61 fill="black">$Revision: 1.5 $</text> 62 </g> 63 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> 64 <!-- comment out this watermark once the test is approved --> 65 <!-- 66 <g id="draft-watermark"> 67 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> 68 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" 69 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> 70 </g> 71 --> 72 </svg></body> 73 </html>