mirror of
https://github.com/servo/servo.git
synced 2025-06-17 12:54:28 +00: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.
33 lines
580 B
HTML
33 lines
580 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!-- Tests that `border-spacing` works. -->
|
|
<style>
|
|
body, html {
|
|
margin: 0;
|
|
}
|
|
table {
|
|
border: none;
|
|
border-spacing: 6px;
|
|
padding: 0;
|
|
}
|
|
tr {
|
|
border-spacing: 64px; /* should have no effect */
|
|
padding: 0;
|
|
}
|
|
td {
|
|
border: none;
|
|
border-spacing: 100px; /* should have no effect */
|
|
padding: 0;
|
|
background: blue;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<table>
|
|
<tr><td width=32 style="height: 32px;"></td><td width=64></td></tr>
|
|
<tr><td width=32 style="height: 32px;"></td><td width=64></td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|
|
|