tor-browser

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

svgbox-stroke-box-002.html (731B)


      1 <!DOCTYPE html>
      2 <title>transform-box: stroke-box, stroke with dash array</title>
      3 <link rel="match" href="reference/svgbox-rect-dasharray-ref.html">
      4 <link rel="help" href="https://drafts.csswg.org/css-transforms-1/#transform-box">
      5 <link rel="help" href="https://svgwg.org/svg2-draft/coords.html#TermStrokeBoundingBox">
      6 <meta name="assert" content="A dash array does not contribute to the stroke bounding box"/>
      7 <style>
      8 #target {
      9  fill: green;
     10  stroke: black;
     11  stroke-width: 20;
     12  stroke-dasharray: 100 50;
     13  stroke-dashoffset: 50;
     14  transform-box: stroke-box;
     15  transform-origin: 20px 0px;
     16  transform: rotate(90deg);
     17 }
     18 </style>
     19 <svg width="400" height="300">
     20  <rect id="target" width="100" height="50" x="100" y="100"/>
     21 </svg>