tor-browser

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

clip-005-ref.html (963B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>Reference: overflow:clip doesn't affect the box' own outline</title>
      4 <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1531609">
      5 <style>
      6  .outer {
      7    width: 50px;
      8    height: 50px;
      9    margin-left: 100px;
     10    margin-top: 100px;
     11    background: black;
     12    outline: 2px solid grey;
     13  }
     14 
     15  .inner {
     16    position: relative;
     17    background: blue;
     18    height: 100px;
     19    width: 100px;
     20    opacity: 0.5;
     21  }
     22 </style>
     23 <!-- there should be no overflow -->
     24 <div class="outer">
     25  <div class="inner" style="width:50px; height:50px;"></div>
     26 </div>
     27 
     28 <!-- there should be overflow in the vertical dimension, but not horizontally -->
     29 <div class="outer">
     30  <div class="inner" style="top:-10px; width:50px"></div>
     31 </div>
     32 
     33 <!-- there should be overflow in the horizontal dimension, but not vertically -->
     34 <div class="outer">
     35  <div class="inner" style="left:-30px; height:50px"></div>
     36 </div>