6 -webkit-flow-from: content-flow;
9 border: 2px solid black;
13 -webkit-flow-into: content-flow;
19 background-color: red;
23 background-color: green;
24 display: inline-block;
28 background-color: yellow;
29 display: inline-block;
33 background-color: blue;
37 <body onload="shuffle()">
38 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=103501">Fix content node renderers ordering inside the named flow thread</a>.</p>
39 <p>The test adds four colored content nodes (mix of inline and block) to a flow and then modifies the flow-into properties to force renderers to shuffle.</p>
40 <p>On success, you should see the blocks ordered: red (top), green, yellow (middle), blue (bottom).</p>
42 <div id="red" class="content">1</div>
43 <div id="green"class="content">2</div>
44 <div id="yellow"class="content">3</div>
45 <div id="blue" class="content">4</div>
46 <div class="region"></div>
48 function readd(content) {
49 content.style.webkitFlowInto = "none";
50 document.body.offsetTop;
51 content.style.webkitFlowInto = "content-flow";
52 document.body.offsetTop;
55 var greenElement = document.getElementById("green");
56 var redElement = document.getElementById("red");
57 var yellowElement = document.getElementById("yellow");
58 var blueElement = document.getElementById("blue");