Skip to content

Instantly share code, notes, and snippets.

@ehsan
Created April 14, 2012 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehsan/2387996 to your computer and use it in GitHub Desktop.
Save ehsan/2387996 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html class="reftest-wait">
<body>
<style>
#a { border: 1px solid black; width: 100px; height: 100px; }
#b { border: 1px solid blue; width: 20px; left: 50px; top: 150px; height: 100px; }
div { position: absolute; }
</style>
<script>
addEventListener("load",function(){
//document.addEventListener("MozReftestInvalidate", function() {
var a = document.querySelector("#a");
var b = document.querySelector("#b");
b.style.left = "10px";
document.documentElement.removeAttribute("class");
}, false);
</script>
<div id="a">
<div id="b">
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment