tor-browser

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

1271714-1.html (584B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3 <meta charset="utf-8">
      4 
      5 <title>Bug 1271714: Hit testing should be able to find the .fixed element</title>
      6 
      7 <style type="text/css">
      8 
      9 .positionedClip {
     10  position: relative;
     11  z-index: 1;
     12  overflow: hidden;
     13 }
     14 
     15 .relative {
     16  position: relative;
     17  z-index: 1;
     18 }
     19 
     20 .fixed {
     21  position: fixed;
     22  border: 1px solid black;
     23  height: 50px;
     24  width: 200px;
     25 }
     26 
     27 </style>
     28 
     29 <div class="positionedClip">
     30  <div class="relative">
     31    <div class="fixed"></div>
     32  </div>
     33 </div>
     34 
     35 <script>
     36 
     37 document.elementFromPoint(100, 30).style.backgroundColor = "yellow";
     38 
     39 </script>