Index: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-overflow-paint.html |
diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-overflow-paint.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-overflow-paint.html |
index b8398b607590b37e108863b41ec9f8b7528749a9..c137e42bf8a7a2168dbe393c586ce176178a93bb 100644 |
--- a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-overflow-paint.html |
+++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-overflow-paint.html |
@@ -1,12 +1,13 @@ |
<!DOCTYPE html> |
<html> |
<head> |
+<link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel="stylesheet"> |
+<link href="resources/grid.css" rel="stylesheet"> |
<style> |
.grid { |
display: grid; |
grid-template-rows: repeat(5, 300px); |
grid-template-columns: repeat(5, 300px); |
- width: -webkit-fit-content; |
background-color: gray; |
} |
@@ -43,7 +44,7 @@ |
</head> |
<body> |
-<div class="grid"> |
+<div class="grid fit-content"> |
<div class="overflowingVerticalGridItemGreen" style="grid-column: 3; grid-row: 1; margin-bottom: -200px;"></div> |
<div class="overflowingVerticalGridItemYellow" style="grid-column: 3; grid-row: 1; margin-bottom: -200px;"></div> |