style: Parse the legacy bgcolor attribute per the HTML5 specification.

Additionally, this patch cleans up some miscellaneous formatting issues.
This commit is contained in:
Patrick Walton 2014-12-07 22:59:38 -08:00
parent 10f1ed5e31
commit 14bafb11be
19 changed files with 370 additions and 36 deletions

View file

@ -209,4 +209,5 @@ fragment=top != ../html/acid2.html acid2_ref.html
== box_shadow_inset_parsing_a.html box_shadow_inset_parsing_ref.html
!= list_style_type_a.html list_style_type_ref.html
== list_style_position_a.html list_style_position_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

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<body>
<table border=0 cellspacing=0 cellpadding=0>
<tr><td bgcolor=chucknorris width=100>&nbsp;</td></tr>
<tr><td bgcolor=ChuckNorris width=100>&nbsp;</td></tr>
<tr><td bgcolor=sick width=100>&nbsp;</td></tr>
<tr><td bgcolor=crap width=100>&nbsp;</td></tr>
<tr><td bgcolor=LuckBeALadyTonight width=100>&nbsp;</td></tr>
<tr><td bgcolor=#abc width=100>&nbsp;</td></tr>
<tr><td bgcolor=#123456 width=100>&nbsp;</td></tr>
<tr><td bgcolor=#abacab width=100>&nbsp;</td></tr>
<tr><td bgcolor=#AbaCab width=100>&nbsp;</td></tr>
<tr><td bgcolor=#ABACAB width=100>&nbsp;</td></tr>
<tr><td bgcolor=transparent width=100>&nbsp;</td></tr>
<tr><td bgcolor=gold width=100>&nbsp;</td></tr>
</table>
</body>
</html>

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<body>
<table border=0 cellspacing=0 cellpadding=0>
<tr><td style="background: #c00000" width=100>&nbsp;</td></tr>
<tr><td style="background: #c00000" width=100>&nbsp;</td></tr>
<tr><td style="background: #00c000" width=100>&nbsp;</td></tr>
<tr><td style="background: #c0a000" width=100>&nbsp;</td></tr>
<tr><td style="background: #00a000" width=100>&nbsp;</td></tr>
<tr><td style="background: #aabbcc" width=100>&nbsp;</td></tr>
<tr><td style="background: #123456" width=100>&nbsp;</td></tr>
<tr><td style="background: #abacab" width=100>&nbsp;</td></tr>
<tr><td style="background: #abacab" width=100>&nbsp;</td></tr>
<tr><td style="background: #abacab" width=100>&nbsp;</td></tr>
<tr><td width=100>&nbsp;</td></tr>
<tr><td style="background: gold" width=100>&nbsp;</td></tr>
</table>
</body>
</html>