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

Unified Diff: LayoutTests/fast/css-grid-layout/grid-element-repeat-max-repetitions.html

Issue 251643002: [CSS Grid Layout] Clamping the number of repetitions when using the repeat() function. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Applied suggested changes. Created 6 years, 8 months 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 | LayoutTests/fast/css-grid-layout/grid-element-repeat-max-repetitions-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css-grid-layout/grid-element-repeat-max-repetitions.html
diff --git a/LayoutTests/fast/css-grid-layout/grid-element-repeat-max-repetitions.html b/LayoutTests/fast/css-grid-layout/grid-element-repeat-max-repetitions.html
new file mode 100644
index 0000000000000000000000000000000000000000..07420426ab63050b53f5e78a372b69b0b2d16bc5
--- /dev/null
+++ b/LayoutTests/fast/css-grid-layout/grid-element-repeat-max-repetitions.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../resources/check-layout.js"></script>
+<link href="resources/grid.css" rel="stylesheet">
+<style>
+
+.clampRepetitionsBelowLimit {
+ grid-template-rows: repeat(9995, 1px);
+}
+
+.clampRepetitionsOnLimit {
+ grid-template-rows: repeat(10000, 1px);
+}
+
+.clampRepetitionsAboveLimit {
+ grid-template-rows: repeat(10005, 1px);
+}
+
+</style>
+</head>
+<body onload="checkLayout('.grid')">
+
+<div>Test the values greater than the maximum repetitions value are clamped through CSS.</div>
+
+<div class="grid clampRepetitionsBelowLimit" data-expected-height="9995"></div>
+
+<div class="grid clampRepetitionsOnLimit" data-expected-height="10000"></div>
+
+<div class="grid clampRepetitionsAboveLimit" data-expected-height="10000"></div>
+
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/css-grid-layout/grid-element-repeat-max-repetitions-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698