tor-browser

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

clip-path-stripes-003-ref.html (1631B)


      1 <!--
      2     Any copyright is dedicated to the Public Domain.
      3     http://creativecommons.org/publicdomain/zero/1.0/
      4 -->
      5 <!DOCTYPE html>
      6 <html>
      7 <head>
      8  <title>CSS Masking: Reftest reference</title>
      9  <link rel="author" title="Dirk Schulze" href="mailto:dschulze@adobe.com">
     10 <style>
     11 div {
     12  height: 20px;
     13  width: 100%;
     14  background-color: green;
     15  padding: 0;
     16  margin: 0;
     17 }
     18 div:nth-child(odd) {
     19  margin-bottom: 5px;
     20  background-color: blue;
     21 }
     22 </style>
     23 <body>
     24  <p>The test passes if you see a multiple green and blue stripe pairs. For each pair, the blue and green stripe must be of same length.</p>
     25  <div style="clip-path: url(#c1)"></div>
     26  <div style="width: 50%"></div>
     27 
     28  <div style="clip-path: url(#c2)"></div>
     29  <div style="width: 20em"></div>
     30 
     31  <!--<div style="clip-path: url(#c3)"></div>
     32  <div style="width: 50vw"></div>
     33 
     34  <div style="clip-path: url(#c4)"></div>
     35  <div style="width: 40vh"></div>
     36 
     37  <div style="clip-path: url(#c5)"></div>
     38  <div style="width: calc(30% + 15px)"></div>-->
     39 
     40  <div style="clip-path: url(#c6)"></div>
     41  <div style="width: 30ex"></div>
     42  <svg>
     43    <clipPath id="c1" clipPathUnits="objectBoundingBox">
     44      <rect width="0.5" height="1"/>
     45    </clipPath>
     46    <clipPath id="c2">
     47      <rect width="20em" height="20"/>
     48    </clipPath>
     49    <!--<clipPath id="c3">
     50      <rect width="50vw" height="20"/>
     51    </clipPath>
     52    <clipPath id="c4">
     53      <rect width="40vh" height="20"/>
     54    </clipPath>
     55    <clipPath id="c5">
     56      <rect width="calc(30% + 15px)" height="20"/>
     57    </clipPath>-->
     58    <clipPath id="c6">
     59      <rect width="30ex" height="20"/>
     60    </clipPath>
     61  </svg>
     62 </body>
     63 </html>