2 <title>Test case for bug https://bugs.webkit.org/show_bug.cgi?id=50135</title>
3 <script src="../js/resources/js-test-pre.js"></script>
25 .wrapper p.bottomright {
43 shouldBe('document.getElementById("p_topRight").getClientRects()[0].width ', '50');
44 shouldBe('document.getElementById("p_botRight").getClientRects()[0].width ', '50');
45 isSuccessfullyParsed();
48 var divList = document.getElementsByClassName('wrapper');
49 while(divList.length){
50 var node = divList.item(divList.length - 1);
51 document.body.removeChild(node);
57 <body onload="startTest();">
59 description("This tests if the parent block has the correct size when the child element has fixed width as zero.")
62 The yellow cube should be positioned top-right
63 <p id="p_topRight" class="topright">
64 <span>This text is hidden</span>
68 The yellow cube should be positioned bottom-right
69 <p id="p_botRight" class="bottomright">
70 <span>This text is hidden</span>