mirror of
https://github.com/servo/servo.git
synced 2025-06-16 12:24:29 +00:00
This patch provides some of the groundwork for column spans greater than 1. It implements the column-span CSS property (prefixed so as not to be exposed to content) as well as the corresponding colspan attribute; although the former is not well-specified outside of CSS multi-column layout, INTRINSIC refers to it. Although width is distributed to spanning columns, they do not yet contribute minimum and preferred widths; this will be implemented in a follow-up. Additionally, this patch cleans up some miscellaneous formatting issues and improves the handling of table rowgroups.
22 lines
482 B
HTML
22 lines
482 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<style>
|
|
td[colspan="2"] {
|
|
background-color: blue;
|
|
color: white;
|
|
}
|
|
td[colspan="3"] {
|
|
background-color: green;
|
|
color: white;
|
|
}
|
|
</style>
|
|
<body>
|
|
<table border=0 cellspacing=0 cellpadding=0>
|
|
<tr><td width=100> </td><td width=100> </td><td width=100> </td></tr>
|
|
<tr><td colspan=2> </td><td> </td></tr>
|
|
<tr><td> <td colspan=2> </td></tr>
|
|
<tr><td colspan=3> </td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|
|
|