layout: Don't double-count padding, etc, and don't draw

backgrounds/borders/etc. twice for inline-blocks.

Improves Reddit, GitHub, and many other sites.
This commit is contained in:
Patrick Walton 2014-09-26 20:34:22 -07:00
parent a2220f1ea4
commit fb5952fed0
4 changed files with 71 additions and 24 deletions

View file

@ -150,3 +150,4 @@ flaky_linux == acid2_noscroll.html acid2_ref_broken.html
== block_formatting_context_complex_a.html block_formatting_context_complex_ref.html
== block_formatting_context_containing_floats_a.html block_formatting_context_containing_floats_ref.html
== clear_generated_content_table_a.html clear_generated_content_table_ref.html
== inline_block_border_a.html inline_block_border_ref.html

View file

@ -0,0 +1,7 @@
<!DOCTYPE html>
<html>
<body>
<div style="display: inline-block; border: solid black 1px; padding: 6px; height: 64px; width: 64px;"></div>
</body>
</html>

View file

@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<body>
<div style="display: block; border: solid black 1px; padding: 6px; height: 64px; width: 64px;"></div>
</body>
</html>