Skip to content

Commit

Permalink
Put absolutes at the top of lines
Browse files Browse the repository at this point in the history
  • Loading branch information
mrobinson committed Dec 19, 2023
1 parent 50c0019 commit bd5527b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/layout_2020/flow/inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2822,7 +2822,8 @@ impl AbsolutelyPositionedLineItem {
},
DisplayOutside::Block => Length::zero(),
},
block: Length::zero(),
// The blocks start position of the absolute should be at the top of the line.
block: -state.block_offset_of_parent,
}
},
Display::GeneratingBox(DisplayGeneratingBox::LayoutInternal(_)) => {
Expand Down

0 comments on commit bd5527b

Please sign in to comment.