tor-browser

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

gradient-powerless-hue-lch-ref.html (1266B)


      1 <!doctype html>
      2 <html lang="en">
      3 <head>
      4    <meta charset="utf-8">
      5    <title>Gradient powerless hue component converting tests - lch</title>
      6    <link rel="author" title="CGQAQ" href="mailto:m.jason.liu@gmail.com">
      7    <link rel="help" href="https://www.w3.org/TR/css-color-4/#interpolation">
      8    <meta name="assert" content="Tests that powerless hue component logic works.">
      9    <style>
     10       .test {
     11            display: flex;
     12            align-items: center;
     13            width: 200px;
     14            height: 50px;
     15            position: relative;
     16            border: 1px solid black;
     17            margin: 10px;
     18 
     19            /* Expected */
     20            background-image: linear-gradient(90deg in lch, red, lch(87.82 113.33 134.38 / 0) );
     21        }
     22 
     23        .info {
     24            position: absolute;
     25            right: -10px;
     26            transform: translateX(100%);
     27        }
     28    </style>
     29 </head>
     30 <p>They should be the same as the first box.</p>
     31 <ol>
     32  <li class="test lch"><div class="info">lch() Expected</div></li>
     33  <li class="test hwb"><div class="info">hwb()</div></li>
     34  <li class="test rgba"><div class="info">rgba()</div></li>
     35  <li class="test hsl"><div class="info">hsl()</div></li>
     36  <li class="test color"><div class="info">color()</div></li>
     37 </ol>
     38 </html>