overflow-on-text-beside-form-element.html 658 B

1234567891011121314
  1. <!DOCTYPE html>
  2. <meta charset=utf8>
  3. <p>crbug.com/667245: Overflow on text beside a form element should get repainted. When clicking on the checkbox there should be no artefact's left from the black rectangle and it should stay the same size (with the bug a row of pixels at the top and bottom were getting lost).</p>
  4. <div id="test" style="font-size: 35px;">
  5. <input type="checkbox" id="checkbox" checked=true onclick="toggle();"> █
  6. </div>
  7. <script>
  8. function toggle()
  9. {
  10. var node = document.getElementById("test");
  11. node.style.color == 'rgb(255, 255, 255)' ? node.style.color = 'rgb(0, 0, 0)' : node.style.color = 'rgb(255, 255, 255)';
  12. }
  13. </script>