Index: third_party/WebKit/LayoutTests/fast/css-grid-layout/absolute-positioning-definite-sizes.html |
diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/absolute-positioning-definite-sizes.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/absolute-positioning-definite-sizes.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dd4de5c6d6382be275fbae3a6554fddba91d19b9 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/absolute-positioning-definite-sizes.html |
@@ -0,0 +1,38 @@ |
+<!DOCTYPE html> |
+<link href="resources/grid.css" rel="stylesheet"> |
+<style> |
+.grid { |
+ grid-template: 1fr / 50px 1fr; |
+ |
+ position: absolute; |
+ left: 50px; |
+ top: 50px; |
+ |
+ width: 200px; |
+ height: 200px; |
+ |
+ border: 7px solid #ccc; |
+ font: 10px/1 Ahem; |
+} |
+ |
+.row1 { |
+ grid-row-start: 1; |
+ background-color: yellow; |
+} |
+ |
+.row2 { |
+ grid-row-start: 2; |
+ background-color: cyan; |
+} |
+</style> |
+ |
+<p>Items should extend to fill the width of the absolutely positioned grid container.</p> |
+<script src="../../resources/check-layout.js"></script> |
+<body onload="checkLayout('.grid')"> |
+ |
+<div class="grid"> |
+ <div class="row1" data-expected-height="50" data-expected-width="200">XXX X</div> |
+ <div class="row2" data-expected-height="150" data-expected-width="200">XX XXX XX</div> |
+</div> |
+ |
+</body> |