mirror of
https://github.com/servo/servo.git
synced 2025-08-14 09:55:35 +01:00
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:
parent
a2220f1ea4
commit
fb5952fed0
4 changed files with 71 additions and 24 deletions
|
@ -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
|
||||
|
|
7
tests/ref/inline_block_border_a.html
Normal file
7
tests/ref/inline_block_border_a.html
Normal 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>
|
||||
|
8
tests/ref/inline_block_border_ref.html
Normal file
8
tests/ref/inline_block_border_ref.html
Normal 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>
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue