gecko/layout/reftests/css-calc/width-table-fixed-1.html

31 lines
758 B
HTML

<!DOCTYPE HTML>
<title>width: calc() on table-layout: auto tables</title>
<style>
table { table-layout: fixed; width: 500px; border-spacing: 0 }
</style>
<table border>
<tr>
<td style="width: -moz-calc(500px)">x</td>
<td style="width: 100px">y</td>
</table>
<table border>
<tr>
<td style="width: -moz-calc(50%)">x</td>
<td style="width: 100px">y</td>
</table>
<table border>
<tr>
<td style="width: -moz-calc(min(50%, 500px))">x</td>
<td style="width: 100px">y</td>
</table>
<table border>
<tr>
<td style="width: -moz-calc(max(50%, 500px))">x</td>
<td style="width: 100px">y</td>
</table>
<table border>
<tr>
<td style="width: -moz-calc(2 * 10% + 0.5 * 500px)">x</td>
<td style="width: 100px">y</td>
</table>