blob: b1f6d76fccfd3137073985efa7ecc32b4b328db3 [file] [log] [blame]
<!DOCTYPE html>
<script src="../../resources/run-after-layout-and-paint.js"></script>
function test()
if (window.testRunner) {
function finish()
var innerLayer = document.getElementById('innerLayer'); = '19px'; = '23px';
if (window.testRunner)
/* nodes that have layers and are containers for their children */
.a { outline: solid blue 1px }
/* nodes that have layers but are not containers for their children */
.b { outline: solid red 1px }
/* nodes that do not have layers */
.c { outline: solid green 1px }
<body onload="test()">
Test where some nodes have layers (because of overflow or transparency) but are not the containing block for their children.
The test passes if it completes without failing any assertions in Debug mode.
<div style="opacity: 0.8; height:40px" class="b">
<div style="height:30px" class="c"></div>
<div style="position:absolute; left:5px; top:5px; height:20px" class="c" id="innerLayer">
<div style="overflow:hidden; height:13px" class="b"></div>
<div style="height:6px" class="c"></div>
<div style="position:relative; top:60px" class="a">
<div style="height:30px" class="c"></div>
<div style="overflow:hidden; height:13px" class="b">