Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / visibility-collapse-form-buttons.html
blob85f78c91787f2c8b43a974930232b2c59143532c
1 <html>
2 <head>
3 <title>Test for bug 38050</title>
4 </head>
5 <body>
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' />
9 </div>
10 <div>
11 <input type='button' value='PASS' id='visibilityButton' />
12 </div>
14 <div id='console'></div>
16 <script>
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';
26 else
27 document.getElementById('console').innerText = 'FAIL';
29 </script>
30 </body>
31 </html>