Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Unified Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-paint-positioned-children.html

Issue 2582363002: [css-grid] Fix positioning of positioned grid children (Closed)
Patch Set: Patch for landing Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-paint-positioned-children-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-paint-positioned-children.html
diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-paint-positioned-children.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-paint-positioned-children.html
new file mode 100644
index 0000000000000000000000000000000000000000..d20fa7aa524aa75d6f020f2334fa4efad45a1117
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-paint-positioned-children.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<link href="resources/grid.css" rel="stylesheet">
+<link rel="match" href="grid-paint-positioned-children-expected.html">
+<style>
+.grid {
+ border: 2px solid black;
+ position: relative;
+ width: 100px;
+
+ grid-template-columns: 10px 20px 30px 40px;
+
+ padding-top: 10px;
+}
+
+.abs {
+ height: 5px;
+ position: absolute;
+ width: 100%;
+}
+
+#item {
+ width: 90px;
+ height: 30px;
+}
+
+</style>
+
+<p>This test passes if you see a gray box with a black border color with 5 rectangles inside. The first line contains a purple, orange, yellow and magenta boxes. Bellow them you should see a 90px cyan box.</p>
+
+<div class="grid">
+ <div id="item" style="grid-column: 1 / -1; background: cyan;"></div>
+ <div class="abs" style="grid-column: 1 / 2; background: purple;"></div>
+ <div class="abs" style="grid-column: 2 / 3; background: orange;"></div>
+ <div class="abs" style="grid-column: 3 / 4; background: yellow;"></div>
+ <div class="abs" style="grid-column: 4 / 5; background: magenta;"></div>
+</div>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-paint-positioned-children-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698