1 <html style="-webkit-writing-mode: vertical-rl;">
3 <style type="text/css">
4 /* Make sure the console and the description don't interfere with the rest of the layout. */
16 -webkit-flow-into: flow1;
17 border: 2px solid blue;
24 border: 2px solid blue;
27 -webkit-flow-into: flow2;
31 border: 1px solid green;
53 -webkit-flow-from: flow1;
54 border: 1px solid red;
63 -webkit-flow-from: flow2;
64 border: 1px solid red;
77 border-right: 1px solid blue;
88 border-bottom: 1px solid blue;
143 <script src="../../../resources/js-test.js"></script>
149 <div class="divText" id="divText1"><b>divText1</b></div>
150 <span class="mySpan" style="color: blue;">This text should flow around the green div. This text should flow around the green div. This text should flow around the green div. This text should flow around the green div. This text should flow around the green div.</span>
154 <div class="divText" id="divText2"><b>divText2</b></div>
155 <span class="mySpan" style="color: blue;">This text should flow around the green div. This text should flow around the green div. This text should flow around the green div. This text should flow around the green div.</span>
158 <div class="region" id="region1"></div>
159 <div class="region" id="region2"></div>
161 <div id="grid1" class="grid">100px</div>
162 <div id="grid2" class="grid">200px</div>
163 <div id="grid3" class="grid">300px</div>
164 <div id="grid4" class="grid">400px</div>
165 <div id="grid5" class="grid">500px</div>
166 <div id="grid6" class="grid">600px</div>
167 <div id="grid7" class="grid">700px</div>
169 <div id="vgrid1" class="vgrid"></div>
170 <div id="vgrid2" class="vgrid">100px</div>
171 <div id="vgrid3" class="vgrid">200px</div>
172 <div id="vgrid4" class="vgrid">300px</div>
173 <div id="vgrid5" class="vgrid">400px</div>
174 <div id="vgrid6" class="vgrid">500px</div>
175 <div id="vgrid7" class="vgrid">600px</div>
176 <div id="vgrid8" class="vgrid">700px</div>
179 description("Test offsetLeft and offsetTop in a named flow with floats in vertical-rl mode.")
181 shouldBe("divText1.offsetParent", "document.body");
182 shouldBe("divText1.offsetLeft", "700");
183 shouldBe("divText1.offsetTop", "200");
185 shouldBe("divText2.offsetParent", "document.body");
186 shouldBe("divText2.offsetLeft", "400");
187 shouldBe("divText2.offsetTop", "200");
189 if (window.testRunner) {
190 var allGraphicElements = document.querySelectorAll(".region, .divText, .grid, .vgrid, .mySpan");
191 for (var i=0; i<allGraphicElements.length; i++)
192 allGraphicElements[i].style.display = "none";