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

Side by Side 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, 7 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/check-layout.js"></script>
5 <link href="resources/grid.css" rel="stylesheet">
6 <style>
7
8 .clampRepetitionsBelowLimit {
9 grid-template-rows: repeat(9995, 1px);
10 }
11
12 .clampRepetitionsOnLimit {
13 grid-template-rows: repeat(10000, 1px);
14 }
15
16 .clampRepetitionsAboveLimit {
17 grid-template-rows: repeat(10005, 1px);
18 }
19
20 </style>
21 </head>
22 <body onload="checkLayout('.grid')">
23
24 <div>Test the values greater than the maximum repetitions value are clamped thro ugh CSS.</div>
25
26 <div class="grid clampRepetitionsBelowLimit" data-expected-height="9995"></div>
27
28 <div class="grid clampRepetitionsOnLimit" data-expected-height="10000"></div>
29
30 <div class="grid clampRepetitionsAboveLimit" data-expected-height="10000"></div>
31
32 </body>
33 </html>
OLDNEW
« 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