mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Parse the legacy border
attribute per the legacy HTML specification.
Additionally, this patch cleans up some miscellaneous formatting issues and refactors files in `layout/css/` somewhat to eliminate needless levels of indirection. It also fixes our handling of presentational hints that only apply if border is nonzero.
This commit is contained in:
parent
e0e14c60d6
commit
10f1ed5e31
19 changed files with 350 additions and 127 deletions
|
@ -209,3 +209,4 @@ 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_table_border_attribute_a.html legacy_table_border_attribute_ref.html
|
||||
|
|
9
tests/ref/legacy_table_border_attribute_a.html
Normal file
9
tests/ref/legacy_table_border_attribute_a.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<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>
|
||||
</body>
|
||||
</html>
|
||||
|
10
tests/ref/legacy_table_border_attribute_ref.html
Normal file
10
tests/ref/legacy_table_border_attribute_ref.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<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: none"><tr><td>:-)</td></tr></table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue