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

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: 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
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..94a4f14c321967dba27970727599ac11329c9751
--- /dev/null
+++ b/LayoutTests/fast/css-grid-layout/grid-element-repeat-max-repetitions.html
@@ -0,0 +1,23 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
Julien - ping for review 2014/04/25 15:50:34 Let's stick with an HTML5 doctype unless there are
+<html>
+<head>
+<script src="../../resources/check-layout.js"></script>
+<link href="resources/grid.css" rel="stylesheet">
+<style>
+
+.maxRepetitionsTrackRepeat {
+ 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>
Julien - ping for review 2014/04/25 15:50:34 No need for this div.
+ <div class="grid maxRepetitionsTrackRepeat" data-expected-height="10000"></div>
Julien - ping for review 2014/04/25 15:50:34 We are doing boundary testing so it would be good
+</div>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698