blob: d3e7231757ca4b00b35be7d3fff6acb6b52b0578 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<link href="resources/flexbox.css" rel="stylesheet">
<style>
.scroll { overflow: scroll; }
.abspos { position: absolute; background-color: pink; }
.flexbox { background-color: lightgray; padding: 1px; }
.small { height: 3px; }
</style>
</head><body>
Test for empty buttons, which inherit from LayoutFlexibleBox. Empty
&lt;input&gt; buttons should not collapse, which makes them different from most
flex boxes. Empty &lt;button&gt;s should collapse. Note <a
href="https://bugs.webkit.org/show_bug.cgi?id=110654"> bug 110654</a>.
<hr>
Simple case.<br>
<button></button><br>
<input type="button"></input><br>
<hr>
Empty &lt;button&gt; and &lt;input type=button&gt; with overflow: scroll;.
The presence of the scrollbar should not shrink the button.<br>
<button class="scroll"></button><br>
<input type="button" class="scroll"></input><br>