9 background-color:green;
14 <div style="width:100px;height:200px; -webkit-writing-mode:vertical-lr">
15 <div id="test" class="block"></div>
17 <div id="console"></div>
19 if (window.layoutTestController)
20 window.layoutTestController.dumpAsText();
21 test = document.getElementById("test");
22 rect = test.getBoundingClientRect();
23 width = rect.right - rect.left;
24 height = rect.bottom - rect.top;
25 if (width != 300 || height != 400) {
26 document.getElementById('console').innerHTML = "FAIL: The block should be 300x400 pixels in size.";
27 test.style.backgroundColor = 'red';
29 document.getElementById('console').innerHTML = "PASS: The block is the correct size.";