tor-browser

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

gradient-powerless-hue-hsl.html (1720B)


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