mirror of
https://github.com/servo/servo.git
synced 2025-06-13 19:04:30 +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.
36 lines
826 B
HTML
36 lines
826 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style type="text/css">
|
|
@font-face {
|
|
font-family: 'ahem';
|
|
src: url(fonts/ahem/ahem.ttf);
|
|
}
|
|
body {
|
|
margin: 0;
|
|
font-family: 'ahem';
|
|
font-size: 100px;
|
|
line-height: 1;
|
|
}
|
|
table {
|
|
background:green;
|
|
padding: 150px;
|
|
box-sizing: content-box;
|
|
border-spacing: 0;
|
|
}
|
|
th {
|
|
color: yellow;
|
|
padding: 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<th>X</th>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</body>
|
|
</html>
|