mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:47:45 +00:00
LibWeb: Establish a new stacking context for elements with transform
This commit is contained in:
parent
9c97bd0de4
commit
7c79fc209f
1 changed files with 2 additions and 0 deletions
|
@ -69,6 +69,8 @@ bool Node::establishes_stacking_context() const
|
||||||
auto position = computed_values().position();
|
auto position = computed_values().position();
|
||||||
if (position == CSS::Position::Absolute || position == CSS::Position::Relative || position == CSS::Position::Fixed || position == CSS::Position::Sticky)
|
if (position == CSS::Position::Absolute || position == CSS::Position::Relative || position == CSS::Position::Fixed || position == CSS::Position::Sticky)
|
||||||
return true;
|
return true;
|
||||||
|
if (!computed_values().transformations().is_empty())
|
||||||
|
return true;
|
||||||
return computed_values().opacity() < 1.0f;
|
return computed_values().opacity() < 1.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue