mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
layout: Take negative margins of floats into account when placing them.
Removes extraneous inline space on GitHub pull requests.
This commit is contained in:
parent
95269bba39
commit
95c9d3cefe
4 changed files with 43 additions and 4 deletions
|
@ -99,6 +99,7 @@ flaky_cpu == append_style_a.html append_style_b.html
|
|||
== float_under_top_margin_a.html float_under_top_margin_ref.html
|
||||
== floated_generated_content_a.html floated_generated_content_b.html
|
||||
== floated_list_item_a.html floated_list_item_ref.html
|
||||
== floated_negative_margins_a.html floated_negative_margins_ref.html
|
||||
== floated_table_with_margin_a.html floated_table_with_margin_ref.html
|
||||
== focus_selector.html focus_selector_ref.html
|
||||
== font_advance.html font_advance_ref.html
|
||||
|
|
16
tests/ref/floated_negative_margins_a.html
Normal file
16
tests/ref/floated_negative_margins_a.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
#a {
|
||||
float: left;
|
||||
margin-left: -64px;
|
||||
width: 128px;
|
||||
height: 128px;
|
||||
background: purple;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div id=a></div>Hello
|
||||
|
15
tests/ref/floated_negative_margins_ref.html
Normal file
15
tests/ref/floated_negative_margins_ref.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
#a {
|
||||
float: left;
|
||||
width: 64px;
|
||||
height: 128px;
|
||||
background: purple;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div id=a></div>Hello
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue