-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathgrid-template-rows-intrinsic-auto-repeat-computed.tentative.html
More file actions
32 lines (32 loc) · 2.2 KB
/
grid-template-rows-intrinsic-auto-repeat-computed.tentative.html
File metadata and controls
32 lines (32 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Grid Lanes Layout Test: getComputedStyle().gridTemplateColumns</title>
<link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
<link rel="help" href="https://drafts.csswg.org/css-grid/#resolved-track-list" title="7.2.6. Resolved Value of a Track Listing">
<meta name="assert" content="Checks the resolved value of grid-template-rows on a grid-lanes container.">
<style>
#target {
display: grid-lanes;
grid-lanes-direction: row;
height: 1px;
font-size: 1px;
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
<div id="target"></div>
<script>
test_computed_value("grid-template-rows", "1px repeat(auto-fill, auto) 3px", "1px 0px 3px");
test_computed_value("grid-template-rows", "1px repeat(auto-fit, auto) 3px", "1px 0px 3px");
test_computed_value("grid-template-rows", "1px [a] repeat(auto-fill, min-content max-content) [b] 4px", "1px [a] 0px 0px [b] 4px");
test_computed_value("grid-template-rows", "1px [a] repeat(auto-fit, min-content max-content) [b] 4px", "1px [a] 0px 0px [b] 4px");
test_computed_value("grid-template-rows", "1px [a] repeat(auto-fill, [b] fit-content(200px) [c]) [d] 3px", "1px [a b] 0px [c d] 3px");
test_computed_value("grid-template-rows", "1px [a] repeat(auto-fit, [b] fit-content(200px) [c]) [d] 3px", "1px [a b] 0px [c d] 3px");
test_computed_value("grid-template-rows", "[a] 1px repeat(auto-fill, auto [b] auto) 4px [d]", "[a] 1px 0px [b] 0px 4px [d]");
test_computed_value("grid-template-rows", "[a] 1px repeat(auto-fit, auto [b] auto) 4px [d]", "[a] 1px 0px [b] 0px 4px [d]");
test_computed_value("grid-template-rows", "100% [a] repeat(auto-fill, [b] min-content [c]) [d] 300%", "1px [a b] 0px [c d] 3px");
test_computed_value("grid-template-rows", "100% [a] repeat(auto-fit, [b] min-content [c]) [d] 300%", "1px [a b] 0px [c d] 3px");
test_computed_value("grid-template-rows", "[a] 1em repeat(auto-fill, max-content [b] auto) 4em [d]", "[a] 1px 0px [b] 0px 4px [d]");
test_computed_value("grid-template-rows", "[a] 1em repeat(auto-fit, max-content [b] auto) 4em [d]", "[a] 1px 0px [b] 0px 4px [d]");
</script>