OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="resources/text-based-repaint.js"></script> | 2 <script src="resources/text-based-repaint.js"></script> |
3 <script src="../../resources/ahem.js"></script> | 3 <script src="../../resources/ahem.js"></script> |
4 <body onload="runRepaintTest()"> | 4 <body onload="runRepaintAndPixelTest()"> |
5 <div style="font-family: Ahem;">This test passes if we correctly repaint the fol
lowing relatively positioned inline.</div> | 5 <div style="font-family: Ahem;">This test passes if we correctly repaint the fol
lowing relatively positioned inline.</div> |
6 <span style="position: relative; top: 80px;"> | 6 <span style="position: relative; top: 80px;"> |
7 <span id="target" style="position: relative; top: 80px;"> | 7 <span id="target" style="position: relative; top: 80px;"> |
8 <div style="display: inline-block; width: 100px; height: 100px; overflow
: hidden; font-family: Ahem; font-size: 100px; color: green;">x</div> | 8 <div style="display: inline-block; width: 100px; height: 100px; overflow
: hidden; font-family: Ahem; font-size: 100px; color: green;">x</div> |
9 </span> | 9 </span> |
10 </span> | 10 </span> |
11 <script> | 11 <script> |
12 function repaintTest() | 12 function repaintTest() |
13 { | 13 { |
14 document.getElementById("target").style.top = "100px"; | 14 document.getElementById("target").style.top = "100px"; |
15 } | 15 } |
16 </script> | 16 </script> |
OLD | NEW |