tor-browser

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

gradients-with-border.html (1186B)


      1 <!doctype html>
      2 <html>
      3 
      4 <head>
      5    <meta charset="utf-8">
      6    <title>Gradients with borders</title>
      7    <link rel="help" href="https://drafts.csswg.org/css-images-3/#gradients">
      8    <meta name="assert" content="Correct placement and rendering of gradients inside elements with borders.">
      9    <link rel="match" href="gradients-with-border-ref.html">
     10    <meta name="fuzzy" content="maxDifference=0-2; totalPixels=0-11000">
     11    <style>
     12        .test {
     13            width: 200px;
     14            height: 100px;
     15            border: solid 10px blue;
     16        }
     17 
     18        #gradient1 {
     19            border-left-width: 100px;
     20            background-image: linear-gradient(to right top, black 49%, white 50%);
     21        }
     22 
     23        #gradient2 {
     24            margin-left: 90px;
     25            background-image: linear-gradient(to right top, black 49%, white 50%);
     26        }
     27 
     28        #gradient3 {
     29            border-left-width: 100px;
     30            background-image: radial-gradient(ellipse at 30% 30%, black 49%, white 50%);
     31        }
     32    </style>
     33 </head>
     34 
     35 <body>
     36    <div id="gradient1" class="test"></div>
     37    <div id="gradient2" class="test"></div>
     38    <div id="gradient3" class="test"></div>
     39 </body>
     40 
     41 </html>