Allow adjusting box offsets

This commit is contained in:
Manish Goregaokar 2020-07-24 10:39:15 -07:00
parent fc71345114
commit 96c0c50874
2 changed files with 22 additions and 0 deletions

View file

@ -352,6 +352,9 @@ impl BlockLevelBox {
BlockLevelBox::OutOfFlowAbsolutelyPositionedBox(box_) => {
let hoisted_box = AbsolutelyPositionedBox::to_hoisted(
box_.clone(),
// This is incorrect, however we do not know the
// correct positioning until later, in place_block_level_fragment,
// and this value will be adjusted there
Vec2::zero(),
tree_rank,
containing_block,