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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/z-index/overlayscrollbar-sorting-2.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +<!--
     1.5 +     Any copyright is dedicated to the Public Domain.
     1.6 +     http://creativecommons.org/publicdomain/zero/1.0/
     1.7 +-->
     1.8 +<!DOCTYPE html>
     1.9 +<meta charset="utf-8">
    1.10 +<title>Test that overlay scrollbars are not covered by overlapping non-positioned siblings</title>
    1.11 +
    1.12 +<style>
    1.13 +
    1.14 +#outer {
    1.15 +  width: 200px;
    1.16 +  height: 200px;
    1.17 +  overflow: auto;
    1.18 +  background: cyan;
    1.19 +}
    1.20 +
    1.21 +#content {
    1.22 +  height: 400px;
    1.23 +}
    1.24 +
    1.25 +/* This test has different behavior depending on the type of scrollbar used.
    1.26 + * We want the scrollbar to be visible. But for non-overlay scrollbars, the
    1.27 + * cover would cover them so we disable the cover.
    1.28 + */
    1.29 +@media all and (-moz-overlay-scrollbars) {
    1.30 +  #cover {
    1.31 +    margin-top: -200px;
    1.32 +    width: 200px;
    1.33 +    height: 200px;
    1.34 +    background: cyan;
    1.35 +  }
    1.36 +}
    1.37 +
    1.38 +</style>
    1.39 +
    1.40 +<div id="outer"><div id="content"></div></div>
    1.41 +<div id="cover"></div>

mercurial