button-inner-no-repaint.html 382 B

12345678910111213141516
  1. <!DOCTYPE html>
  2. <script src="resources/text-based-repaint.js"></script>
  3. <script>
  4. function repaintTest() {
  5. document.getElementsByTagName('button')[0].style.maxWidth = '1000px';
  6. }
  7. onload = runRepaintTest;
  8. </script>
  9. <style>
  10. button {
  11. position: absolute;
  12. width: 300px;
  13. height: 100px;
  14. }
  15. </style>
  16. <button>Should not repaint on style change that doesn't change visual.<br></button>