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-variables/variable-reference-without-whitespace.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-variables/variable-reference-without-whitespace.html')
-rw-r--r-- | testing/web-platform/tests/css/css-variables/variable-reference-without-whitespace.html | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-variables/variable-reference-without-whitespace.html b/testing/web-platform/tests/css/css-variables/variable-reference-without-whitespace.html new file mode 100644 index 0000000000..35d558892e --- /dev/null +++ b/testing/web-platform/tests/css/css-variables/variable-reference-without-whitespace.html @@ -0,0 +1,52 @@ +<!DOCTYPE html> +<title>Variable reference without whitespace</title> +<link rel=match href=reference/variable-reference-without-whitespace-ref.html> +<link rel=help href=http://www.w3.org/TR/css-variables-1/#syntax> +<link rel=author title="Simon Sapin" href=http://exyr.org/about/> +<meta rel=assert content=" + A variable reference followed by something without whitespace in between + must not be interpreted together as a single identifier. + Custom property values are sequences of tokens, not strings."> +<style> +p { + counter-reset: -- --a -a; + --dash:-; +} + +#test_1 span::before { + counter-increment: var(--dash)-; + content: counter(--); +} +#test_2 span::before { + counter-increment: var(--dash)-a; + content: counter(--a); +} +#test_3 span::before { + counter-increment: var(--dash)a; + content: counter(-a); +} + +#control_1 span::before { + counter-increment: --; + content: counter(--); +} +#control_2 span::before { + counter-increment: --a; + content: counter(--a); +} +#control_3 span::before { + counter-increment: -a; + content: counter(-a); +} +</style> +<p>The next four lines must be identical, containing only zeroes: +<p id="test_1"><span></span> <span></span> <span></span> +<p id="test_2"><span></span> <span></span> <span></span> +<p id="test_3"><span></span> <span></span> <span></span> +<p>0 0 0 + +<p>The next four lines must be identical, containing increasing integers: +<p id="control_1"><span></span> <span></span> <span></span> +<p id="control_2"><span></span> <span></span> <span></span> +<p id="control_3"><span></span> <span></span> <span></span> +<p>1 2 3 |