layout/reftests/z-index/overlayscrollbar-sorting-2.html

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 <!--
     2      Any copyright is dedicated to the Public Domain.
     3      http://creativecommons.org/publicdomain/zero/1.0/
     4 -->
     5 <!DOCTYPE html>
     6 <meta charset="utf-8">
     7 <title>Test that overlay scrollbars are not covered by overlapping non-positioned siblings</title>
     9 <style>
    11 #outer {
    12   width: 200px;
    13   height: 200px;
    14   overflow: auto;
    15   background: cyan;
    16 }
    18 #content {
    19   height: 400px;
    20 }
    22 /* This test has different behavior depending on the type of scrollbar used.
    23  * We want the scrollbar to be visible. But for non-overlay scrollbars, the
    24  * cover would cover them so we disable the cover.
    25  */
    26 @media all and (-moz-overlay-scrollbars) {
    27   #cover {
    28     margin-top: -200px;
    29     width: 200px;
    30     height: 200px;
    31     background: cyan;
    32   }
    33 }
    35 </style>
    37 <div id="outer"><div id="content"></div></div>
    38 <div id="cover"></div>

mercurial