mirror of
https://github.com/servo/servo.git
synced 2025-08-31 01:58:23 +01:00
Do not compound iframe margins when positioning
Instead of taking margin size into account twice when positioning layers, just rely on the absolute position calculated during display list construction.
This commit is contained in:
parent
6e3c776387
commit
e53093e127
4 changed files with 23 additions and 12 deletions
|
@ -127,6 +127,7 @@ fragment=top != ../html/acid2.html acid2_ref.html
|
|||
== iframe/simple.html iframe/simple_ref.html
|
||||
== iframe/multiple_external.html iframe/multiple_external_ref.html
|
||||
== iframe/overflow.html iframe/overflow_ref.html
|
||||
== iframe/positioning_margin.html iframe/positioning_margin_ref.html
|
||||
|
||||
== floated_generated_content_a.html floated_generated_content_b.html
|
||||
== inline_block_margin_a.html inline_block_margin_ref.html
|
||||
|
|
8
tests/ref/iframe/positioning_margin.html
Normal file
8
tests/ref/iframe/positioning_margin.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<html>
|
||||
<body style="margin: 0px;">
|
||||
<iframe src="data:text/html,%3Chtml%3E%3Cbody%20style%3D%22margin%3A%200px%3B%22%3E%3Cdiv%20style%3D%22background%3A%20green%3B%20height%3A%20100px%3B%20width%3A%20100px%3B%22%3E%3C%2Fdiv%3E%3C%2Fbody%3E%3C%2Fhtml%3E"
|
||||
style="display: block; border: 0px; width: 100px; height: 100px; margin-top: 100px;">
|
||||
</iframe>
|
||||
</body>
|
||||
</html>
|
||||
|
5
tests/ref/iframe/positioning_margin_ref.html
Normal file
5
tests/ref/iframe/positioning_margin_ref.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<html>
|
||||
<body>
|
||||
<div style="position: absolute; width: 100px; height: 100px; background: green; top: 100px; left: 0px;"></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue