1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:17:46 +00:00

LibWeb: Compute position of relative block elements

Section 10.3 "Calculating widths and margins" indicates that the 'left'
and 'right' properties of relatively positioned elements should be set
in accordance with the rules of section 9.4.3.
This commit is contained in:
Timothy Flynn 2021-03-29 12:04:26 -04:00 committed by Andreas Kling
parent 13266e7d99
commit deda7c8995
2 changed files with 38 additions and 0 deletions

View file

@ -47,6 +47,7 @@ public:
protected:
void compute_width(Box&);
void compute_height(Box&);
void compute_position(Box&);
private:
virtual bool is_block_formatting_context() const final { return true; }