tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

masking-path-07-b-isvalid.html (4974B)


      1 <!DOCTYPE html>
      2 <html lang='en'>
      3 <head>
      4 <title>masking-path-07-b-manual.svg</title>
      5 <meta charset='utf-8'>
      6 </head>
      7 <body>
      8 <h1>Source SVG: masking-path-07-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: masking-path-07-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 
     32    <defs>
     33      <clipPath id="clipCircle1">
     34        <circle id="c1" cx="100" cy="100" r="50"/>
     35      </clipPath>
     36 
     37      <clipPath id="clipCircle2">
     38        <circle id="c2" cx="150" cy="150" r="50"/>
     39      </clipPath>
     40 
     41      <clipPath id="clipPath1">
     42        <path id="p1" d="M10 10l100 0 0 100 -100 0ZM50 50l40 0 0 40 -40 0Z" clip-rule="evenodd"/>
     43      </clipPath>
     44 
     45      <!-- "If a valid 'clip-path' reference is placed on one of the children of a 'clipPath' element, 
     46 	      then the given child element is clipped by the referenced clipping path before OR'ing the 
     47 		  silhouette of the child element with the silhouettes of the other child elements." -->
     48      <clipPath id="clipRects1">
     49        <rect x="50" y="30" width="25" height="100"/>
     50        <rect x="25" y="50" width="10" height="10" clip-path="url(#clipTwoCircles)"/>
     51      </clipPath>
     52 
     53      <!-- Test use in a clipPath -->
     54      <clipPath id="clipTwoCircles">
     55        <use xlink:href="#c1"/>
     56        <use xlink:href="#c2"/>
     57      </clipPath>
     58 
     59      <clipPath id="clipInClip1">
     60        <use xlink:href="#c2" clip-path="url(#clipCircle1)"/>
     61        <use xlink:href="#p1"/>
     62      </clipPath>
     63 
     64      <clipPath id="clipOnClip1" clip-path="url(#clipCircle1)">
     65        <use xlink:href="#c2"/>
     66        <use xlink:href="#p1"/>
     67      </clipPath>
     68 
     69      <pattern patternUnits="userSpaceOnUse" id="pattern" x="0" y="0" width="20" height="20">
     70        <rect x="0" y="0" width="10" height="10" fill="gray"/>
     71        <rect x="10" y="10" width="10" height="10" fill="gray"/>
     72      </pattern>
     73    </defs>
     74 
     75    <rect x="20" y="70" width="210" height="210" fill="url(#pattern)" stroke="black" stroke-width="4"/>
     76 	<rect x="250" y="70" width="210" height="210" fill="url(#pattern)" stroke="black" stroke-width="4"/>
     77 
     78    <text x="240" y="2em" text-anchor="middle">Test clip unions and intersections</text>
     79 
     80    <g transform="translate(20, 70)">
     81      <g id="subtest1">
     82        <use xlink:href="#p1" fill="red" fill-rule="evenodd"/>
     83        <use xlink:href="#c2" fill="red" clip-path="url(#clipCircle1)"/>
     84        <use xlink:href="#c1" fill="red" clip-path="url(#clipCircle2)"/>
     85 
     86        <rect width="200" height="200" fill="blue" clip-path="url(#clipInClip1)"/>
     87 
     88        <use xlink:href="#c2" fill="none" clip-path="url(#clipCircle1)" stroke="black"/>
     89        <use xlink:href="#c1" fill="none" clip-path="url(#clipCircle2)" stroke="black"/>
     90        <use xlink:href="#p1" fill="none" stroke="black"/>
     91      </g>
     92 
     93      <g id="subtest2" transform="translate(230,0)">
     94        <g clip-path="url(#clipCircle1)">
     95          <use xlink:href="#c2" fill="red"/>
     96          <use xlink:href="#p1" fill="red" fill-rule="evenodd"/>
     97        </g>
     98 
     99        <rect width="300" height="300" fill="blue" clip-path="url(#clipOnClip1)"/>
    100 
    101        <use xlink:href="#c1" fill="none" stroke="black"/>
    102      </g>
    103    </g>
    104  </g>
    105  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
    106    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.11 $</text>
    107  </g>
    108  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
    109  <!-- comment out this watermark once the test is approved --><!--
    110  <g id="draft-watermark">
    111    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
    112    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
    113      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
    114  </g>-->
    115 </svg>
    116 </body>
    117 </html>