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">
67 var svgStyle
= document
.getElementById("svg").style
;
68 var htmlStyle
= document
.getElementById("html").style
;
70 window
.testIsAsync
= true;
74 function repaintTest() {
75 if (iterations
< 10) {
76 svgLeft
= svgLeft
+ 15;
77 htmlLeft
= htmlLeft
+ 15;
80 htmlTop
= htmlTop
+ 25;
82 svgStyle
.left
= svgLeft
+ "px";
83 svgStyle
.top
= svgTop
+ "px";
85 htmlStyle
.left
= htmlLeft
+ "px";
86 htmlStyle
.top
= htmlTop
+ "px";
89 requestAnimationFrame(repaintTest
);