Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
3 changed files
with
22 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> | ||
|
4c453ac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from pcwalton
at mrobinson@4c453ac
4c453ac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging mrobinson/servo/layer-sizing = 4c453ac into auto
4c453ac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mrobinson/servo/layer-sizing = 4c453ac merged ok, testing candidate = 7f26c67
4c453ac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://build.servo.org/builders/linux/builds/233
success: http://build.servo.org/builders/mac/builds/238
4c453ac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 7f26c67