OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../repaint/resources/text-based-repaint.js"></script> | |
3 <script> | |
4 function repaintTest() { | |
5 var target = document.getElementById('target'); | |
6 // Intermediate outline change should not affect final overflow and paint inva lidation. | |
7 target.style.outline = '40px solid green'; | |
8 target.offsetHeight; | |
9 target.style.outline = '20px solid green'; | |
10 target.offsetHeight; | |
11 } | |
12 onload = runRepaintTest; | |
13 </script> | |
14 <p style="height: 100px"> | |
15 Tests overflow recalc and paint invalidation in a table cell when outline change s. | |
16 Passes if there is a thick green outline and no red. | |
Julien - ping for review
2014/11/25 18:33:10
The outline should be 20px for the test to pass as
Julien - ping for review
2014/11/25 18:33:10
The outline should be 20px for the test to pass as
Xianzhu
2014/11/25 20:17:12
Good catch. I changed the intermediate color to ye
| |
17 </p> | |
18 <table style="border: none; margin: 50px"> | |
19 <tr> | |
20 <td> | |
21 <div id="target" style="width: 100px; height: 100px; outline: 1px solid re d"></div> | |
22 </td> | |
23 </tr> | |
24 </table> | |
OLD | NEW |