5 <style type="text/css" media="screen">
12 border: 1px solid black;
13 clip: rect(10px, 80px, 80px, 20px);
20 border: 1px solid blue;
26 background-color: gray;
27 transform: translateZ(1px);
34 <script type="text/javascript" charset="utf-8">
35 if (window.testRunner) {
36 testRunner.dumpAsText();
37 testRunner.waitUntilDone();
41 if (window.testRunner) {
42 var layersElement = document.getElementById('layers');
43 // Do not include any text in the layers output, otherwise we need expected results for each platform.
44 layersElement.style.display = "none";
45 layersElement.innerText = window.internals.layerTreeAsText(document);
46 layersElement.style.display = "block";
47 testRunner.notifyDone();
50 window.addEventListener('load', doTest, false);
55 <!-- Test overflow clipping of composited elements in various configurations. -->
56 <div class="container">
57 <div class="intermediate">
63 <div class="container" style="left: 200px;">
64 <div class="intermediate" style="position: absolute">
70 <div class="container" style="z-index: 0; top: 200px;">
71 <div class="intermediate">
77 <div class="container" style="z-index: 0; top: 200px; left: 200px;">
78 <div class="intermediate" style="position: absolute; z-index: 0;">
85 In DRT, layer tree goes here.