layout/reftests/z-index/overlayscrollbar-sorting-5.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 on top of positioned siblings when the scrollable frame has a positioned descendant that's higher than the sibling</title>
     9 <style>
    11 #outer {
    12   width: 200px;
    13   height: 200px;
    14   overflow: auto;
    15 }
    17 #content {
    18   height: 400px;
    19   background: cyan;
    20   position: relative;
    21   z-index: 3;
    22 }
    24 /* This test has different behavior depending on the type of scrollbar used.
    25  * We want the scrollbar to be visible. When overlay scrollbars are used,
    26  * they should be visible even when #cover gets between #outer and #content,
    27  * but for non-overlay scrollbars, that would cover them so we disable the
    28  * cover.
    29  */
    30 @media all and (-moz-overlay-scrollbars) {
    31   #cover {
    32     width: 200px;
    33     height: 200px;
    34     background: cyan;
    35     position: absolute;
    36     z-index: 2;
    37   }
    38 }
    40 </style>
    42 <div id="cover"></div>
    43 <div id="outer"><div id="content"></div></div>

mercurial