style: Address review comments relating to bgcolor and column spans

This commit is contained in:
Patrick Walton 2014-12-11 09:58:00 -08:00
parent 17835ba0cb
commit a1ea44b294
33 changed files with 712 additions and 422 deletions

View file

@ -210,5 +210,6 @@ fragment=top != ../html/acid2.html acid2_ref.html
!= list_style_type_a.html list_style_type_ref.html
== list_style_position_a.html list_style_position_ref.html
== table_colspan_simple_a.html table_colspan_simple_ref.html
== table_colspan_fixed_a.html table_colspan_fixed_ref.html
== legacy_td_bgcolor_attribute_a.html legacy_td_bgcolor_attribute_ref.html
== legacy_table_border_attribute_a.html legacy_table_border_attribute_ref.html

View file

@ -1,9 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<style>
table {
border-color: red;
}
</style>
</head>
<body>
<table border=10 style="border-style: solid; border-color: black"><tr><td style="border: none">:-)</td></tr></table>
<table border=mimi style="border-style: solid; border-color: black"><tr><td style="border: none">:-)</td></tr></table>
<table border=0 style="border-style: solid; border-color: black"><tr><td style="border: none">:-)</td></tr></table>
<table border=10><tr><td style="border: none">:-)</td></tr></table>
<table border=mimi><tr><td style="border: none">:-)</td></tr></table>
<table border=0><tr><td style="border: none">:-)</td></tr></table>
</body>
</html>

View file

@ -1,8 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<body>
<table style="border: solid black 10px"><tr><td>:-)</td></tr></table>
<table style="border: solid black 1px"><tr><td>:-)</td></tr></table>
<table style="border: outset red 10px"><tr><td>:-)</td></tr></table>
<table style="border: outset red 1px"><tr><td>:-)</td></tr></table>
<table style="border: none"><tr><td>:-)</td></tr></table>
</body>
</html>

View file

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<style>
table {
width: 300px;
table-layout: fixed;
}
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>&nbsp;</td><td width=100>&nbsp;</td><td width=100>&nbsp;</td></tr>
<tr><td colspan=2>&nbsp;</td><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td><td colspan=2>&nbsp;</td></tr>
<tr><td colspan=3>&nbsp;</td></tr>
</table>
</body>
</html>

View file

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<style>
table {
table-layout: fixed;
width: 300px;
}
td.two {
background-color: blue;
color: white;
}
td.three {
background-color: green;
color: white;
}
</style>
<body>
<table border=0 cellspacing=0 cellpadding=0>
<tr><td width=100>&nbsp;</td><td width=100>&nbsp;</td><td width=100>&nbsp;</td></tr>
<tr><td class=two>&nbsp;</td><td class=two></td><td>&nbsp;</td></tr>
<tr><td>&nbsp;<td class=two>&nbsp;</td><td class=two></td></tr>
<tr><td class=three>&nbsp;</td><td class=three></td><td class=three></td></tr>
</table>
</body>
</html>