Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
index 434c340a29739f0269b6663014d74b9a0f577d9d..e44471b0aec1a558e518942a01621ab49144de87 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
@@ -2739,7 +2739,8 @@ bool LayoutBox::hasStretchedLogicalWidth() const { |
bool LayoutBox::sizesLogicalWidthToFitContent( |
const Length& logicalWidth) const { |
- if (isFloating() || isInlineBlockOrInlineTable()) |
+ if (isFloating() || isInlineBlockOrInlineTable() || |
+ styleRef().hasOutOfFlowPosition()) |
return true; |
if (isGridItem()) |