|
@@ -82,6 +82,8 @@ bool Node::can_contain_boxes_with_position_absolute() const
|
|
|
// Any computed value other than none for the transform affects containing block and stacking context
|
|
|
if (!computed_values().transformations().is_empty())
|
|
|
return true;
|
|
|
+ if (computed_values().rotate().has_value())
|
|
|
+ return true;
|
|
|
|
|
|
return false;
|
|
|
}
|
|
@@ -175,6 +177,9 @@ bool Node::establishes_stacking_context() const
|
|
|
if (!computed_values().transformations().is_empty())
|
|
|
return true;
|
|
|
|
|
|
+ if (computed_values().rotate().has_value())
|
|
|
+ return true;
|
|
|
+
|
|
|
// Element that is a child of a flex container, with z-index value other than auto.
|
|
|
if (parent() && parent()->display().is_flex_inside() && computed_values().z_index().has_value())
|
|
|
return true;
|
|
@@ -710,7 +715,7 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& computed_style)
|
|
|
computed_values.set_box_shadow(computed_style.box_shadow(*this));
|
|
|
|
|
|
if (auto rotate_value = computed_style.rotate(*this); rotate_value.has_value())
|
|
|
- computed_values.set_rotate(rotate_value.value());
|
|
|
+ computed_values.set_rotate(rotate_value.release_value());
|
|
|
|
|
|
computed_values.set_transformations(computed_style.transformations());
|
|
|
if (auto transform_box = computed_style.transform_box(); transform_box.has_value())
|