| <!-- webkit-test-runner [ LayoutFormattingContextEnabled=true InlineFormattingContextIntegrationEnabled=false ] --> |
| <style> |
| .container { |
| width: 100px; |
| height: 20px; |
| } |
| |
| .floatBox { |
| float: left; |
| width: 20px; |
| height: 100%; |
| background-color: green; |
| } |
| |
| .table { |
| display: table; |
| height: 20px; |
| background-color: blue; |
| } |
| </style> |
| <div class=container> |
| <div class=floatBox></div> |
| <div class=table></div> |
| </div> |
| |
| <div class=container> |
| <div class=floatBox></div> |
| <div class=table style="width: 20px;"></div> |
| </div> |
| |
| <div class=container> |
| <div class=floatBox></div> |
| <div class=table style="min-width: 20px;"></div> |
| </div> |
| |
| <div class=container> |
| <div class=floatBox></div> |
| <div class=table style="max-width: 20px;"></div> |
| </div> |
| |
| <div class=container> |
| <div class=floatBox></div> |
| <div class=table style="width: 40px; max-width: 40px;"></div> |
| </div> |
| |
| <div class=container> |
| <div class=floatBox></div> |
| <div class=table style="width: 10px; min-width: 20px;"></div> |
| </div> |