Skip to content

Commit e9495ed

Browse files
[Masonry] Add computed value test for repeat(auto-fill, auto)
Add test for serialization of `repeat(auto-fill, auto)` in grid-lanes. This closes out the remaining serialization tasks - flow-tolerance, grid-lanes-direction, and grid-lanes-pack serialization are already working with existing test coverage. Bug: 343257585 Change-Id: Icc4e000906e234c419a01acef2fbdef838a14b33 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7812608 Commit-Queue: Yanling Wang <yanlingwang@microsoft.com> Reviewed-by: Celeste Pan <celestepan@microsoft.com> Reviewed-by: Alison Maher <almaher@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1627039}
1 parent 89f0524 commit e9495ed

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

css/css-grid/grid-lanes/grid-lanes-grid-template-columns-computed-withcontent.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,18 @@
7272
'30px 54px 54px 54px 54px 54px');
7373
test_computed_value("grid-template-columns", '[] 150px [] 1fr []', '150px 150px');
7474

75-
// <auto-repeat> = repeat( [ auto-fill | auto-fit ] , [ <line-names>? <fixed-size> ]+ <line-names>? )
75+
// <auto-repeat> = repeat( [ auto-fill | auto-fit ] , [ <line-names>? [ <fixed-size> | auto ] ]+ <line-names>? )
7676
test_computed_value("grid-template-columns", 'repeat(auto-fill, 200px)', '200px');
7777
test_computed_value("grid-template-columns", 'repeat(auto-fit, [one] 20%)',
7878
'[one] 60px [one] 0px [one] 0px [one] 0px [one] 0px');
7979
test_computed_value("grid-template-columns", 'repeat(auto-fill, minmax(100px, 5fr) [two])',
8080
'100px [two] 100px [two] 100px [two]');
8181
test_computed_value("grid-template-columns", 'repeat(auto-fit, [three] minmax(max-content, 6em) [four])',
8282
'[three] 240px [four]');
83+
test_computed_value("grid-template-columns", 'repeat(auto-fill, auto)',
84+
'30px 30px 30px 30px 30px 30px 30px 30px 30px 30px');
85+
test_computed_value("grid-template-columns", 'repeat(auto-fit, auto)',
86+
'300px 0px 0px 0px 0px 0px 0px 0px 0px 0px');
8387

8488
// <auto-track-list> =
8589
// [ <line-names>? [ <fixed-size> | <fixed-repeat> ] ]* <line-names>?

0 commit comments

Comments
 (0)