mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +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.
20 lines
315 B
HTML
20 lines
315 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
border-spacing: 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<table style="width: 500px; text-align: center;">
|
|
<tr><td style="">Expanding...</td></tr>
|
|
<tr><td style="">to...</td></tr>
|
|
<tr><td style="">fit!</td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|
|
|