mirror of
https://github.com/servo/servo.git
synced 2025-06-19 14:48:59 +01:00
`cellspacing` attribute per HTML5 § 14.3.9. Table layout code has been refactored to push the spacing down to rowgroups and rows; this will aid the implementation of `border-collapse` as well. This commit also fixes two nasty issues in table layout: * In fixed layout, extra space would not be divided among columns that had auto width but had nonzero minimum width. * In automatic layout, extra space would be distributed to constrained columns as well even if unconstrained columns with percentage equal to zero were present.
36 lines
594 B
HTML
36 lines
594 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!--
|
|
Tests that `border-spacing` with automatic table layout works when not all the column sizes
|
|
are specified.
|
|
-->
|
|
<style>
|
|
body, html {
|
|
margin: 0;
|
|
}
|
|
table {
|
|
border: none;
|
|
border-spacing: 6px;
|
|
padding: 0;
|
|
width: 114px;
|
|
table-layout: fixed;
|
|
}
|
|
tr {
|
|
padding: 0;
|
|
}
|
|
td {
|
|
border: none;
|
|
padding: 0;
|
|
background: blue;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<table>
|
|
<tr><td style="width: 32px; height: 32px;"></td><td> </td></tr>
|
|
<tr><td style="width: 32px; height: 32px;"></td><td> </td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|
|
|