Index: Source/core/rendering/RenderObject.cpp |
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp |
index 060a0cbc7532e9f643b1e79c302dbaceea1f74e4..e3194e45b26745dd218c97f50ab36e264aaa7441 100644 |
--- a/Source/core/rendering/RenderObject.cpp |
+++ b/Source/core/rendering/RenderObject.cpp |
@@ -2229,9 +2229,9 @@ void RenderObject::propagateStyleToAnonymousChildren(bool blockChildrenOnly) |
newStyle->setColumnSpan(ColumnSpanAll); |
} |
- // Preserve the position style of anonymous block continuations as they can have relative or sticky position when |
- // they contain block descendants of relative or sticky positioned inlines. |
- if (child->isInFlowPositioned() && toRenderBlock(child)->isAnonymousBlockContinuation()) |
+ // Preserve the position style of anonymous block continuations as they can have relative position when |
+ // they contain block descendants of relative positioned inlines. |
+ if (child->isRelPositioned() && toRenderBlock(child)->isAnonymousBlockContinuation()) |
newStyle->setPosition(child->style()->position()); |
child->setStyle(newStyle.release()); |