blob: 122f90af3f13e8bf4975f350d80274dfd9d5a49a [file] [log] [blame]
<!DOCTYPE html>
.fixed {
position: fixed;
width: 50px;
height: 50px;
.absolute {
position: absolute;
top: 40px;
left: 40px;
height: 100px;
width: 100px;
background-color: gray;
<script type="text/javascript">
if (window.internals)
if (window.testRunner) {
window.addEventListener("load", function() {
document.getElementById("layertree").innerText = window.internals.layerTreeAsText(document);
}, false);
<div style="height: 1000px">
<p>There should be no layers.</p>
<pre id="layertree"></pre>
<!-- This should not be composited -->
<div class="fixed" style="top: 10px; left: 10px"></div>
<!-- And this should not be promoted into a layer -->
<div class="absolute"></div>