tor-browser

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

css3-background-clip-content-box-ref.html (1439B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3  <head>
      4    <meta charset="utf-8" />
      5    <title>CSS Backgrounds Test:background clip property with value content-box</title>
      6    <link rel="author" title="yanshasha" href="mailto:yanshasha133@gmail.com" />
      7    <link rel="reviewer" title="Dayang Shen" href="mailto:shendayang@baidu.com"> <!-- 2013-09-03 -->
      8    <style type="text/css">
      9            .box {
     10                width: 200px;
     11                height: 200px;
     12                position: relative;
     13            }
     14            .box div {
     15                position: absolute;
     16            }
     17            #div1 {
     18                top: 0;
     19                left: 0;
     20                right: 0;
     21                bottom: 0;
     22                background-color: green;
     23            }
     24            #div2 {
     25                top: 15px;
     26                left: 15px;
     27                right: 15px;
     28                bottom: 15px;
     29                background-color: red;
     30            }
     31            #div3 {
     32                top: 30px;
     33                left: 30px;
     34                right: 30px;
     35                bottom: 30px;
     36                background-color: yellow;
     37            }
     38    </style>
     39  </head>
     40  <body>
     41    <p>
     42      The test passes if threre are three overlapping squares with different color(green,red and yellow from outside to inside).
     43    </p>
     44    <div class="box">
     45      <div id="div1"></div>
     46      <div id="div2"></div>
     47      <div id="div3"></div>
     48    </div>
     49  </body>
     50 </html>