<html>
<head>
<script>
  if (window.testRunner) {
    window.testRunner.dumpAsText();
    window.testRunner.waitUntilDone();
  }

  function done() {
    if (window.testRunner)
      window.testRunner.notifyDone();
  }

  function dumpTreeAsText() {
    if (!window.internals)
      return;
    document.getElementById('layers').textContent =
        window.internals.layerTreeAsText(document);
    document.getElementById('test').style.display = 'none';
    done();
  }

  function removeStackingContext() {
   