2 <script src=
"../../fast/repaint/resources/text-based-repaint.js"></script>
6 flex-flow: column-reverse;
14 function repaintTest()
16 document
.getElementById("blue").style
.margin
= "1px";
19 window
.onload = function() {
20 if (!window
.testRunner
) {
21 document
.body
.appendChild(document
.createTextNode(
22 "This test checks that for flex items that are moved multiple times during the layout "
23 + "only the initial and final positions are repainted. Only the blue flex item should be repainted "
24 + "after changing its position. If the other flex items are repainted, this test fails."));
26 window
.enablePixelTesting
= true;
31 <div id=
"blue" class=
"flex-item" style=
"background-color: blue;"></div>
32 <div id=
"green" class=
"flex-item" style=
"background-color: green;"></div>
33 <div id=
"yellow" class=
"flex-item" style=
"background-color: yellow;"></div>