Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 | |
| 3 <style> | |
| 4 #border, | |
| 5 #outline { | |
| 6 height: 100px; | |
| 7 width: 100px; | |
| 8 } | |
| 9 </style> | |
| 10 | |
| 11 <script src="resources/text-based-repaint.js"></script> | |
| 12 <script> | |
| 13 if (window.testRunner) | |
| 14 testRunner.dumpAsText(); | |
| 15 | |
| 16 function repaintTest() { | |
|
ojan
2014/04/03 00:51:06
Should this also test the cases of border-style:hi
| |
| 17 var border = document.getElementById("border"); | |
| 18 border.style.border = "0"; | |
| 19 | |
| 20 var outline = document.getElementById("outline"); | |
| 21 outline.style.outline = "0"; | |
| 22 } | |
| 23 onload = runRepaintTest; | |
| 24 </script> | |
| 25 | |
| 26 <p>Tests that setting an outline or a border of 0 on an element without a border or outline doesn't repaint.</p> | |
| 27 | |
| 28 <div id="border"></div> | |
| 29 <div id="outline"></div> | |
| OLD | NEW |