1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:08:11 +00:00

LibWeb: Compute width of absolutely positioned, replaced elements

Fixes #4589.
This commit is contained in:
Andreas Kling 2021-01-06 19:16:40 +01:00
parent 0ecefbff57
commit 80cffdc0a1

View file

@ -437,8 +437,10 @@ void FormattingContext::compute_width_for_absolutely_positioned_non_replaced_ele
void FormattingContext::compute_width_for_absolutely_positioned_replaced_element(ReplacedBox& box)
{
// FIXME: Implement this.
return compute_width_for_absolutely_positioned_non_replaced_element(box);
// 10.3.8 Absolutely positioned, replaced elements
// The used value of 'width' is determined as for inline replaced elements.
box.prepare_for_replaced_layout();
box.set_width(compute_width_for_replaced_element(box));
}
void FormattingContext::compute_height_for_absolutely_positioned_non_replaced_element(Box& box)