3 <title>Test for bug
38050</title>
6 <p>The two buttons below should say PASS:
</p>
7 <div id='collapseDiv' style='visibility: collapse;'
>
8 <input type='button' value='PASS' id='collapseButton'
/>
11 <input type='button' value='PASS' id='visibilityButton'
/>
14 <div id='console'
></div>
17 if (window
.testRunner
)
18 testRunner
.dumpAsText();
20 document
.body
.offsetTop
; // Force layout.
21 document
.getElementById("collapseDiv").style
.visibility
='visible'
23 // The two buttons should have the same width.
24 if (document
.getElementById('collapseButton').clientWidth
== document
.getElementById('visibilityButton').clientWidth
)
25 document
.getElementById('console').innerText
= 'PASS';
27 document
.getElementById('console').innerText
= 'FAIL';