1 <html xmlns="http://www.w3.org/1999/xhtml">
3 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
29 border-left-width: 15px;
30 border-left-style: solid;
31 border-left-color: blue;
34 border-right-width: 20px;
35 border-right-style: solid;
36 border-right-color: yellow;
39 border-top-width: 5px;
40 border-top-style: solid;
41 border-top-color: red;
44 border-bottom-width: 10px;
45 border-bottom-style: solid;
46 border-bottom-color: green;
52 <body onload="runRepaintAndPixelTest()">
53 <svg id="svg" xmlns="http://www.w3.org/2000/svg">
54 <rect width="100" height="100" fill="lime"/>
57 <div id="html" class="outerBox"><div class="innerBox"/></div>
59 <script type="text/javascript">
69 var svgStyle = document.getElementById("svg").style;
70 var htmlStyle = document.getElementById("html").style;
72 function repaintTest() {
73 if (iterations < 10) {
74 if (iterations == 0) {
75 if (window.testRunner)
76 testRunner.waitUntilDone();
79 svgLeft = svgLeft + 15;
80 htmlLeft = htmlLeft + 15;
83 htmlTop = htmlTop + 25;
85 svgStyle.left = svgLeft + "px";
86 svgStyle.top = svgTop + "px";
88 htmlStyle.left = htmlLeft + "px";
89 htmlStyle.top = htmlTop + "px";
92 window.setTimeout(repaintTest, 0);
94 if (window.testRunner)
95 testRunner.notifyDone();