OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/testharness.js"></script> |
| 3 <script src="../../../resources/testharnessreport.js"></script> |
| 4 <script src="../resources/text-based-repaint.js"></script> |
| 5 <script> |
| 6 // When resizing the div that contains SVG, the SVG root element and rect resize |
| 7 // accordingly. |
| 8 // It's necessary to invalidate the rect in this case. |
| 9 window.expectedObjectInvalidations.push("LayoutSVGRect rect"); |
| 10 window.outputRepaintRects = false; |
| 11 |
| 12 function repaintTest() { |
| 13 target.style.width = "600px"; |
| 14 }; |
| 15 onload = runRepaintTest; |
| 16 </script> |
| 17 <div id="target" style="width: 200px; height: 400px"> |
| 18 <svg width='500' height='400' viewBox='0 0 500 400' |
| 19 style='width: 100%; height: 100%; transform: translateZ(0)'> |
| 20 <rect width='500' height='400' fill='green'/> |
| 21 </svg> |
| 22 </div> |
OLD | NEW |