830299-1.html 1019 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!DOCTYPE html>
  2. <html lang="en-US" class="reftest-wait">
  3. <head>
  4. <title>Testcase, bug 830299</title>
  5. <meta charset=UTF-8>
  6. <style type="text/css">
  7. html { margin: 1px; padding: 2px }
  8. body { margin: 4px; padding: 8px }
  9. #outer {
  10. position: absolute;
  11. overflow: hidden;
  12. transform: translateX(0px);
  13. top: 3px; left: 5px;
  14. width: 200px; height: 200px;
  15. background: yellow;
  16. }
  17. #inner {
  18. position: fixed;
  19. top: 7px; left: 9px;
  20. width: 100px; height: 100px;
  21. background: aqua;
  22. }
  23. </style>
  24. <script type="text/javascript">
  25. window.addEventListener("load", function(event) {
  26. setTimeout(function() {
  27. document.getElementById("inner").style.display = "";
  28. document.documentElement.removeAttribute("class");
  29. }, 100);
  30. }, false);
  31. </script>
  32. </head>
  33. <body>
  34. <div id="outer">
  35. <div id="inner" style="display:none">inner</div>
  36. </div>
  37. </body>
  38. </html>