mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
Include leading margin in inline block size
According to the documentation for Fragment::position, the inline axis should include margin size, so we include it for blocks. Also fix place_float which assumed that it was not included and assign_inline_sizes which overrode the size set in set_inline_size_constraint_solutions. Typically this issue was hidden by large tile sizes, but fitted tiles makes it more common.
This commit is contained in:
parent
c87f34f877
commit
4c453ac519
3 changed files with 22 additions and 9 deletions
|
@ -62,6 +62,7 @@
|
|||
== position_fixed_overflow_a.html position_fixed_overflow_b.html
|
||||
== position_fixed_tile_edge.html position_fixed_tile_edge_ref.html
|
||||
== position_fixed_tile_edge_2.html position_fixed_tile_edge_ref.html
|
||||
== position_fixed_tile_edge_3.html position_fixed_tile_edge_ref.html
|
||||
== position_relative_a.html position_relative_b.html
|
||||
== position_relative_top_percentage_a.html position_relative_top_percentage_b.html
|
||||
== background_none_a.html background_none_b.html
|
||||
|
|
11
tests/ref/position_fixed_tile_edge_3.html
Normal file
11
tests/ref/position_fixed_tile_edge_3.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<html>
|
||||
<body>
|
||||
<div style="position: absolute; top: 0px; left: 0px;">
|
||||
<div style="position: absolute; background: green; margin-left: 512px; width: 20px; height: 20px;"></div>
|
||||
|
||||
<!-- This position:fixed sibling should force its sibling to be layerized. -->
|
||||
<div style="position: fixed;"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue