https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 2bb58d6708560733bd6282089761fc7d89ab4d02 authored by ffxbld on 22 May 2015, 00:49:37 UTC
Added FIREFOX_38_0_5_RELEASE FIREFOX_38_0_5_BUILD3 tag(s) for changeset 7ded72d766cd. DONTBUILD CLOSED TREE a=release
Tip revision: 2bb58d6
stress-1.html
<!DOCTYPE html>
<html class="reftest-wait">
<head>

<style>
  .fl:first-line { }
  .inh { position: inherit; }
  .abs { position: absolute; }
  body { visibility: hidden; }
</style>
 
<script>

function boom()
{
  x = document.getElementById("x");
  y = document.getElementById("y");

  x.setAttribute('class', "fl abs");
  y.setAttribute('class', "inh");
  setTimeout(boom2, 5);
}

function boom2()
{
  y.setAttribute('class', "abs");
  document.body.offsetWidth;
  document.documentElement.className = "";
}

</script>

</head>

<body onload="setTimeout(boom, 5);">
<div id="x">
  <p id="y">foo</p>
</div>
</body>

</html>
back to top