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

Unified Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-overflow.html

Issue 2523233002: [css-grid] Implied minimum size only applies if overflow is visible (Closed)
Patch Set: Apply suggested changes Created 4 years, 1 month 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-item-overflow-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-item-overflow.html
diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-overflow.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-overflow.html
new file mode 100644
index 0000000000000000000000000000000000000000..bb7eaf139c3ce8da4495a6864d8b3ac2602a7b02
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-overflow.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<style>
+.grid {
+ display: inline-grid;
+ border: thick solid;
+ height: 50px;
+ width: 50px;
+ margin: 50px;
+}
+
+.i1 {
+ color: cyan;
+ background: magenta;
+ font-size: 100px;
+}
+
+.auto { overflow: auto; }
+.hidden { overflow: hidden; }
+</style>
+
+<p>This test checks that implied minimum size of grid items is only applied if overflow is visible.</p>
+<p>The test passes if in the first grid the item overflows, in the second one it has scrollbars,
+and in the third one the item doesn't overflow but it doesn't have scrollbars.</p>
+
+<div class="grid">
+ <div class="i1">X</div>
+</div>
+
+<div class="grid">
+ <div class="i1 auto">X</div>
+</div>
+
+<div class="grid">
+ <div class="i1 hidden">X</div>
+</div>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-overflow-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698