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:
parent
0ecefbff57
commit
80cffdc0a1
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue