tor-browser

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

border-collapse-opacity-table-cell-ref.html (1834B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
      2 "http://www.w3.org/TR/html4/strict.dtd">
      3 <html lang="en-US">
      4 <head>
      5 <title>Table background tests</title>
      6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      7 <meta http-equiv="Content-Style-Type" content="text/css">
      8 <style type="text/css">
      9 
     10 html, body { margin: 0; padding: 0; border: 0; font-size: 16px; }
     11 body { padding: 15px; }
     12 
     13 .o { opacity: 0.5; }
     14 
     15 /*
     16 table { 
     17 	margin: 0px 3px 2px 4px;
     18 	border-width: 4px 2px 8px 6px;
     19 
     20 	height is 97px:
     21 	  (2px of border outside height)
     22 	  extra border width for top row: 0
     23 	  cell * 5: == 19px * 5 == 95px
     24 	    border-top: 2px;
     25 	    padding-top: 1px;
     26 	    height: 10px;
     27 	    padding-bottom: 4px;
     28 	    border-bottom: 2px;
     29 	  extra border width for top row: 2px
     30 	  (4px of border outside height)
     31 
     32 	width is 287px:
     33 	  (3px of border outside width)
     34 	  extra border width for left column: 2px
     35 	  cell * 5: == 57px * 5 == 285px
     36 	    border-left: 1px;
     37 	    padding-left: 3px;
     38 	    width: 50px;
     39 	    padding-right: 2px;
     40 	    border-right: 1px;
     41 	  (1px of border outside width)
     42    */
     43 
     44 div { width: 57px; height: 19px; margin: 40px 118px 86px 123px; }
     45 div.color { background-color: aqua; }
     46 
     47 /* The use of opacity < 1 on this cell will create a stacking context,
     48    which causes its background to be inset inside the (collapsed) borders,
     49    see bug 1859523. Adjust the reference div to match. */
     50 div.color.o { width: 55px; height: 15px; margin: 42px 119px 88px 124px; }
     51 
     52 div.imagetl, div.imagebr {
     53 	background-image: url(repeatable-diagonal-gradient-with-ticks.png);
     54 }
     55 
     56 div.imagetl { background-position: 1px 2px; }
     57 div.imagebr { background-position: 56px 17px; }
     58 
     59 </style>
     60 </head>
     61 <body>
     62 
     63 <div class="color o"></div>
     64 <div class="imagetl o"></div>
     65 <div class="imagebr"></div>
     66 
     67 </body>
     68 </html>