background-position-2f.html 698 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE html>
  2. <html lang="en" class="reftest-wait">
  3. <meta charset="utf-8">
  4. <title>Changes to background-position should invalidate properly for fieldsets.</title>
  5. <style>
  6. body {
  7. margin: 0;
  8. }
  9. #background {
  10. width: 100px;
  11. height: 100px;
  12. background-image: url(image_rgrg-256x256.png);
  13. background-repeat: no-repeat;
  14. background-position: 0 0;
  15. border: 0;
  16. padding: 0;
  17. margin: 0;
  18. }
  19. </style>
  20. <fieldset id="background"><legend></legend></fieldset>
  21. <script>
  22. function doTest() {
  23. document.querySelector("#background").style.backgroundPosition = "-140px 0";
  24. document.documentElement.removeAttribute("class");
  25. }
  26. document.addEventListener("MozReftestInvalidate", doTest);
  27. </script>