diff --git a/components/layout/inline.rs b/components/layout/inline.rs index 97d88bb06b2..8a323d744f4 100644 --- a/components/layout/inline.rs +++ b/components/layout/inline.rs @@ -1342,7 +1342,7 @@ impl Flow for InlineFlow { self.base .absolute_position_info .relative_containing_block_mode, - CoordinateSystem::Own); + CoordinateSystem::Parent); let clip = fragment.clipping_region_for_children(&self.base.clip, &stacking_relative_border_box); match fragment.specific { diff --git a/tests/ref/basic.list b/tests/ref/basic.list index 0212f59dea9..ea43fdd0d20 100644 --- a/tests/ref/basic.list +++ b/tests/ref/basic.list @@ -133,6 +133,7 @@ flaky_cpu == append_style_a.html append_style_b.html == inline_block_parent_width.html inline_block_parent_width_ref.html == inline_block_parent_width_percentage.html inline_block_parent_width_ref.html == inline_block_percentage_height_a.html inline_block_percentage_height_ref.html +== inline_block_stacking_context_a.html inline_block_stacking_context_ref.html == inline_block_with_margin_a.html inline_block_with_margin_ref.html # inline_border_a.html inline_border_b.html == inline_element_border_a.html inline_element_border_ref.html diff --git a/tests/ref/inline_block_stacking_context_a.html b/tests/ref/inline_block_stacking_context_a.html new file mode 100644 index 00000000000..7580f853735 --- /dev/null +++ b/tests/ref/inline_block_stacking_context_a.html @@ -0,0 +1,21 @@ + + +
+ + + +