mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
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.
11 lines
352 B
HTML
11 lines
352 B
HTML
<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>
|
|
|