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 accordingly. | |
7 // It's necessary to invalidate the rect in this case. | |
8 window.expectedObjectInvalidations.push("LayoutSVGRect rect"); | |
9 | |
10 onload = runRepaintTest; | |
11 window.outputRepaintRects = false; | |
12 function repaintTest() { | |
13 target.style.width = '200px'; | |
14 target.style.height= '200px'; | |
15 }; | |
16 </script> | |
17 <div id="target" style="width: 100px; height: 100px"> | |
18 <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 200 200" xml:space="preserve"> | |
fs
2016/10/06 10:51:49
Nit: xmlns:xlink, version and xml:space don't add
chrishtr
2016/10/06 16:52:04
Done.
| |
19 <rect x="50" y="50" width="100" height="100"/> | |
20 </svg> | |
21 </div> | |
OLD | NEW |