tor-browser

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

fixed-pos-scrolled-clip-2.html (1267B)


      1 <!DOCTYPE html>
      2 <html reftest-async-scroll
      3      reftest-displayport-x="0" reftest-displayport-y="0"
      4      reftest-displayport-w="800" reftest-displayport-h="2000"
      5      reftest-async-scroll-x="0" reftest-async-scroll-y="50">
      6 
      7 <title>position:fixed should not be clipped by the subframe clip, but it should be clipped by the "clip" clip, and the "clip" clip should be moved by the subframe.</title>
      8 
      9 <style>
     10 
     11 body {
     12  margin: 0;
     13  height: 4000px;
     14 }
     15 
     16 .subframe {
     17  margin-top: 300px;
     18  width: 400px;
     19  height: 400px;
     20  overflow: auto;
     21 }
     22 
     23 .subframeScrolled {
     24  height: 800px;
     25  position: relative;
     26 }
     27 
     28 .absoluteClip {
     29  position: absolute;
     30  top: 0px;
     31  left: 100px;
     32  width: 200px;
     33  height: 200px;
     34  background: red;
     35  clip: rect(auto auto auto auto);
     36 }
     37 
     38 .fixed {
     39  position: fixed;
     40  top: 0;
     41  right: 0;
     42  bottom: 0;
     43  left: 0;
     44  background: linear-gradient(lime, lime) black 0 100px no-repeat;
     45  background-size: 100% 200px;
     46 }
     47 
     48 </style>
     49 
     50 <div class="subframe"
     51      reftest-displayport-x="0" reftest-displayport-y="0"
     52      reftest-displayport-w="400" reftest-displayport-h="800"
     53      reftest-async-scroll-x="0" reftest-async-scroll-y="150">
     54  <div class="subframeScrolled">
     55    <div class="absoluteClip">
     56      <div class="fixed"></div>
     57    </div>
     58  </div>
     59 </div>