fieldset-child-1-dyn.html 651 B

123456789101112131415161718192021222324252627282930313233343536
  1. <!DOCTYPE html>
  2. <html class="reftest-wait">
  3. <head>
  4. <style type="text/css">
  5. .separator {
  6. height: 20px;
  7. background-color: green;
  8. }
  9. fieldset {
  10. margin: 0;
  11. padding: 0;
  12. border: none;
  13. background-color: lightgreen;
  14. }
  15. #child {
  16. height: 40px;
  17. background-color: green;
  18. }
  19. </style>
  20. <script type="text/javascript">
  21. function test() {
  22. document.getElementById('child').style.margin = '20px 0';
  23. document.documentElement.removeAttribute('class');
  24. }
  25. document.addEventListener('MozReftestInvalidate', test, false);
  26. </script>
  27. </head>
  28. <body>
  29. <div class="separator"></div>
  30. <fieldset>
  31. <div id="child"></div>
  32. </fieldset>
  33. <div class="separator"></div>
  34. </body>
  35. </html>