LibWeb: Move position and text-align to LayoutStyle

This commit is contained in:
Andreas Kling 2020-06-24 14:34:40 +02:00
commit 959464fce4
Notes: sideshowbarker 2024-07-19 05:24:39 +09:00
6 changed files with 25 additions and 37 deletions

View file

@ -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())