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

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

michael@0 1 <!--
michael@0 2 Any copyright is dedicated to the Public Domain.
michael@0 3 http://creativecommons.org/publicdomain/zero/1.0/
michael@0 4 -->
michael@0 5 <!DOCTYPE html>
michael@0 6 <meta charset="utf-8">
michael@0 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>
michael@0 8
michael@0 9 <style>
michael@0 10
michael@0 11 #outer {
michael@0 12 width: 200px;
michael@0 13 height: 200px;
michael@0 14 overflow: auto;
michael@0 15 }
michael@0 16
michael@0 17 #content {
michael@0 18 height: 400px;
michael@0 19 background: cyan;
michael@0 20 position: relative;
michael@0 21 z-index: 3;
michael@0 22 }
michael@0 23
michael@0 24 /* This test has different behavior depending on the type of scrollbar used.
michael@0 25 * We want the scrollbar to be visible. When overlay scrollbars are used,
michael@0 26 * they should be visible even when #cover gets between #outer and #content,
michael@0 27 * but for non-overlay scrollbars, that would cover them so we disable the
michael@0 28 * cover.
michael@0 29 */
michael@0 30 @media all and (-moz-overlay-scrollbars) {
michael@0 31 #cover {
michael@0 32 width: 200px;
michael@0 33 height: 200px;
michael@0 34 background: cyan;
michael@0 35 position: absolute;
michael@0 36 z-index: 2;
michael@0 37 }
michael@0 38 }
michael@0 39
michael@0 40 </style>
michael@0 41
michael@0 42 <div id="cover"></div>
michael@0 43 <div id="outer"><div id="content"></div></div>

mercurial