diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-grid/subgrid/grid-template-valid.html')
-rw-r--r-- | testing/web-platform/tests/css/css-grid/subgrid/grid-template-valid.html | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-grid/subgrid/grid-template-valid.html b/testing/web-platform/tests/css/css-grid/subgrid/grid-template-valid.html new file mode 100644 index 0000000000..d568e973e9 --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/subgrid/grid-template-valid.html @@ -0,0 +1,58 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Grid Layout Test: parsing 'grid' with valid values</title> +<link rel="help" href="https://drafts.csswg.org/css-grid-2"> +<meta name="assert" content="grid-template supports the grammar `none | <track-list> | <auto-track-list> | subgrid <line-name-list>?`."> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/css/support/parsing-testcommon.js"></script> +</head> +<body> +<script> + +// <'grid-template'> values +test_valid_value("grid-template-rows", 'subgrid'); +test_valid_value("grid-template-rows", 'subgrid [a]'); +test_valid_value("grid-template-rows", 'subgrid [a] [b]'); +test_valid_value("grid-template-rows", 'subgrid [a] [b] [c]'); +test_valid_value("grid-template-rows", 'subgrid []'); +test_valid_value("grid-template-rows", 'subgrid [a] [b] [] [c]'); +test_valid_value("grid-template-rows", 'subgrid [] [] [] [c]'); +test_valid_value("grid-template-rows", 'subgrid [] [] [] []'); +test_valid_value("grid-template-rows", 'subgrid repeat(auto-fill, [a])'); +test_valid_value("grid-template-rows", 'subgrid repeat(auto-fill, [])'); +test_valid_value("grid-template-rows", 'subgrid [a] repeat(auto-fill, [b])'); +test_valid_value("grid-template-rows", 'subgrid [a] repeat(auto-fill, [b]) [c]'); +test_valid_value("grid-template-rows", 'subgrid [] repeat(auto-fill, []) []'); +test_valid_value("grid-template-rows", 'subgrid repeat(2, [a])'); +test_valid_value("grid-template-rows", 'subgrid repeat(2, [a] [b])'); +test_valid_value("grid-template-rows", 'subgrid [a] repeat(2, [b])'); +test_valid_value("grid-template-rows", 'subgrid [a] repeat(2, [b]) [c]'); +test_valid_value("grid-template-rows", 'subgrid [] repeat(2, []) []'); +test_valid_value("grid-template-rows", 'subgrid [a] repeat(2, [b]) repeat(auto-fill, [c]) [d]'); + +test_valid_value("grid-template-columns", 'subgrid'); +test_valid_value("grid-template-columns", 'subgrid [a]'); +test_valid_value("grid-template-columns", 'subgrid [a] [b]'); +test_valid_value("grid-template-columns", 'subgrid [a] [b] [c]'); +test_valid_value("grid-template-columns", 'subgrid []'); +test_valid_value("grid-template-columns", 'subgrid [a] [b] [] [c]'); +test_valid_value("grid-template-columns", 'subgrid [] [] [] [c]'); +test_valid_value("grid-template-columns", 'subgrid [] [] [] []'); +test_valid_value("grid-template-columns", 'subgrid repeat(auto-fill, [a])'); +test_valid_value("grid-template-columns", 'subgrid repeat(auto-fill, [])'); +test_valid_value("grid-template-columns", 'subgrid [a] repeat(auto-fill, [b])'); +test_valid_value("grid-template-columns", 'subgrid [a] repeat(auto-fill, [b]) [c]'); +test_valid_value("grid-template-columns", 'subgrid [] repeat(auto-fill, []) []'); +test_valid_value("grid-template-columns", 'subgrid repeat(2, [a])'); +test_valid_value("grid-template-columns", 'subgrid repeat(2, [a] [b])'); +test_valid_value("grid-template-columns", 'subgrid [a] repeat(2, [b])'); +test_valid_value("grid-template-columns", 'subgrid [a] repeat(2, [b]) [c]'); +test_valid_value("grid-template-columns", 'subgrid [] repeat(2, []) []'); +test_valid_value("grid-template-columns", 'subgrid [a] repeat(2, [b]) repeat(auto-fill, [c]) [d]'); + +</script> +</body> +</html> |