mirror of
https://github.com/servo/servo.git
synced 2025-06-14 19:34:29 +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.
39 lines
424 B
HTML
39 lines
424 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!-- Tests that `border-spacing` works. -->
|
|
<style>
|
|
div {
|
|
background: blue;
|
|
position: absolute;
|
|
height: 32px;
|
|
}
|
|
#a, #c {
|
|
width: 32px;
|
|
}
|
|
#b, #d {
|
|
width: 64px;
|
|
}
|
|
#a, #b {
|
|
top: 6px;
|
|
}
|
|
#c, #d {
|
|
top: 44px;
|
|
}
|
|
#a, #c {
|
|
left: 6px;
|
|
}
|
|
#b, #d {
|
|
left: 44px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id=a></div>
|
|
<div id=b></div>
|
|
<div id=c></div>
|
|
<div id=d></div>
|
|
</body>
|
|
</html>
|
|
|
|
|