Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 12 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /css/css-grid/parsing/grid-template-rows-intrinsic-auto-repeat-computed-nogrid.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Masonry 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 an element which is not a masonry container.">
<style>
#target {
display: block;
width: 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", "none");
test_computed_value("grid-template-rows", "1px repeat(auto-fit, auto) 3px", "none");
test_computed_value("grid-template-rows", "1px [a] repeat(auto-fill, min-content max-content) [b] 4px", "none");
test_computed_value("grid-template-rows", "1px [a] repeat(auto-fit, min-content max-content) [b] 4px", "none");
test_computed_value("grid-template-rows", "1px [a] repeat(auto-fill, [b] fit-content(200px) [c]) [d] 3px", "none");
test_computed_value("grid-template-rows", "1px [a] repeat(auto-fit, [b] fit-content(200px) [c]) [d] 3px", "none");
test_computed_value("grid-template-rows", "[a] 1px repeat(auto-fill, auto [b] auto) 4px [d]", "none");
test_computed_value("grid-template-rows", "[a] 1px repeat(auto-fit, auto [b] auto) 4px [d]", "none");
test_computed_value("grid-template-rows", "100% [a] repeat(auto-fill, [b] min-content [c]) [d] 300%", "none");
test_computed_value("grid-template-rows", "100% [a] repeat(auto-fit, [b] min-content [c]) [d] 300%", "none");
test_computed_value("grid-template-rows", "[a] 1em repeat(auto-fill, max-content [b] auto) 4em [d]", "none");
test_computed_value("grid-template-rows", "[a] 1em repeat(auto-fit, max-content [b] auto) 4em [d]", "none");
</script>