mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +00:00
LibWeb: Move position and text-align to LayoutStyle
This commit is contained in:
parent
6f28f08096
commit
959464fce4
6 changed files with 25 additions and 37 deletions
|
@ -323,7 +323,7 @@ bool LayoutBox::establishes_stacking_context() const
|
|||
return false;
|
||||
if (node() == document().root())
|
||||
return true;
|
||||
auto position = this->position();
|
||||
auto position = style().position();
|
||||
auto z_index = style().z_index();
|
||||
if (position == CSS::Position::Absolute || position == CSS::Position::Relative) {
|
||||
if (z_index.has_value())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue