diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-grid/parsing/grid-area-invalid.html | |
parent | Initial commit. (diff) | |
download | firefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-grid/parsing/grid-area-invalid.html')
-rw-r--r-- | testing/web-platform/tests/css/css-grid/parsing/grid-area-invalid.html | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-grid/parsing/grid-area-invalid.html b/testing/web-platform/tests/css/css-grid/parsing/grid-area-invalid.html new file mode 100644 index 0000000000..c7d35ebf09 --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/parsing/grid-area-invalid.html @@ -0,0 +1,47 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8"> +<title>CSS Grid Layout Test: parsing grid-area with invalid values</title> +<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org"> +<link rel="help" href="https://drafts.csswg.org/css-grid-1/#propdef-grid-area"> +<meta name="assert" content="grid-area supports only the grammar '<grid-line> [ / <grid-line> ]{0,3}'."> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/css/support/parsing-testcommon.js"></script> +</head> +<body> +<script> +test_invalid_value("grid-area", "'string'"); +test_invalid_value("grid-row", "1.0"); +test_invalid_value("grid-column", "1 2"); +test_invalid_value("grid-row-start", "+-3"); +test_invalid_value("grid-column-start", "0"); +test_invalid_value("grid-row-end", "span"); +test_invalid_value("grid-column-end", "sPaN"); +test_invalid_value("grid-column-end", '"1st"'); +test_invalid_value("grid-column-end", "1st"); +test_invalid_value("grid-column-start", "auto 1"); +test_invalid_value("grid-row-start", "1 auto"); + +test_invalid_value("grid-area", "auto / initial"); +test_invalid_value("grid-row", "auto / inherit"); +test_invalid_value("grid-column", "auto / unset"); + +test_invalid_value("grid-area", "auto / auto / auto / auto / auto"); +test_invalid_value("grid-row", "1 / 2 / 3") +test_invalid_value("grid-column", "a / b / c"); +test_invalid_value("grid-row-end", "span 1 / span 2"); +test_invalid_value("grid-area", "auto 2 auto 4"); +test_invalid_value("grid-row", "33 -A0 auto"); +test_invalid_value("grid-row", "auto i 2 j span 3 k"); + + +// https://github.com/w3c/csswg-drafts/issues/2856 +test_invalid_value("grid-row-end", "1 auto"); +test_invalid_value("grid-row-end", "span 1 auto"); +test_invalid_value("grid-row-end", "span auto 1"); +test_invalid_value("grid-row-end", "1 auto span"); +</script> +</body> +</html> |