tor-browser

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

pull-background-displayport-1.html (1670B)


      1 <!DOCTYPE html>
      2 <html lang="en" reftest-async-scroll>
      3 <meta charset="utf-8">
      4 <title>Scrollboxes with uniform backgrounds should pull that color into their contents, even if their contents have a visible region that extends beyond the scrollbox clip</title>
      5 
      6 <style>
      7 
      8 div {
      9  min-height: 50px;
     10  box-model: border-box;
     11 }
     12 
     13 .first, .second {
     14  border: 1px solid blue;
     15  margin: 50px 0;
     16 }
     17 
     18 .border {
     19  border: 1px solid black;
     20 }
     21 
     22 .scrollable {
     23  height: auto;
     24  overflow: auto;
     25 }
     26 
     27 .scrollarea {
     28  width: 5000px;
     29  border: none;
     30  padding: 10px 0 20px;
     31  height: auto;
     32 }
     33 
     34 .scrolled {
     35  margin-left: 220px;
     36  width: 100px;
     37  height: 100px;
     38  border-color: red;
     39 }
     40 
     41 body {
     42  margin: 0;
     43  padding: 0 100px;
     44  height: 3000px;
     45 }
     46 
     47 </style>
     48 
     49 <div class="first" reftest-assigned-layer="page-background">
     50  <!--
     51    This is just a regular box, it should end up in the page background layer.
     52  -->
     53 </div>
     54 
     55 <div class="scrollable border"
     56     reftest-displayport-x="0" reftest-displayport-y="0"
     57     reftest-displayport-w="2000" reftest-displayport-h="200">
     58  <div class="scrollarea">
     59    <div class="scrolled border reftest-opaque-layer">
     60      <!--
     61        The background of .scrollable is uniform and opaque,
     62        .scrolled should be able to pull up that background color and become
     63        opaque itself.
     64      -->
     65    </div>
     66  </div>
     67 </div>
     68 
     69 <div class="second" reftest-assigned-layer="page-background">
     70  <!--
     71    This should share a layer with .first and the page background.
     72  -->
     73 </div>
     74 
     75 <script>
     76 
     77 var scrollable = document.querySelector(".scrollable");
     78 
     79 // Make .scrollable start out with active scrolling.
     80 scrollable.scrollLeft = 0;
     81 scrollable.scrollLeft = 20;
     82 
     83 </script>