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/support | |
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/support')
5 files changed, 43 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-variables/support/color-green-ref.html b/testing/web-platform/tests/css/css-variables/support/color-green-ref.html new file mode 100644 index 0000000000..0eabe58c81 --- /dev/null +++ b/testing/web-platform/tests/css/css-variables/support/color-green-ref.html @@ -0,0 +1,13 @@ +<!-- + Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ +--> +<!DOCTYPE html> +<title>CSS Reftest Reference</title> +<link rel="author" title="Cameron McCormack" href="mailto:cam@mcc.id.au"> +<style> +p { + color: green; +} +</style> +<p>This text must be green.</p> diff --git a/testing/web-platform/tests/css/css-variables/support/external-variable-declaration.css b/testing/web-platform/tests/css/css-variables/support/external-variable-declaration.css new file mode 100644 index 0000000000..9ba1b9d328 --- /dev/null +++ b/testing/web-platform/tests/css/css-variables/support/external-variable-declaration.css @@ -0,0 +1,5 @@ +p { + color: red; + --a: green; + color: var(--a); +} diff --git a/testing/web-platform/tests/css/css-variables/support/external-variable-font-face.css b/testing/web-platform/tests/css/css-variables/support/external-variable-font-face.css new file mode 100644 index 0000000000..e3ad1eddb4 --- /dev/null +++ b/testing/web-platform/tests/css/css-variables/support/external-variable-font-face.css @@ -0,0 +1,15 @@ +@font-face { + --a: MyTestFontName; + font-family: var(--a); + src: url(/fonts/Ahem.ttf); +} +@font-face { + font-family: MyTestFontName2; + src: url(/fonts/Ahem.ttf); +} +#a { + font-family: MyTestFontName, serif; +} +#b { + font-family: MyTestFontName2, serif; +} diff --git a/testing/web-platform/tests/css/css-variables/support/external-variable-reference.css b/testing/web-platform/tests/css/css-variables/support/external-variable-reference.css new file mode 100644 index 0000000000..0c697fdcf9 --- /dev/null +++ b/testing/web-platform/tests/css/css-variables/support/external-variable-reference.css @@ -0,0 +1,6 @@ +:root { + --a: green; +} +p { + color: var(--a); +} diff --git a/testing/web-platform/tests/css/css-variables/support/external-variable-supports.css b/testing/web-platform/tests/css/css-variables/support/external-variable-supports.css new file mode 100644 index 0000000000..96582bfd8f --- /dev/null +++ b/testing/web-platform/tests/css/css-variables/support/external-variable-supports.css @@ -0,0 +1,4 @@ +body { color: red; } +@supports (color:var(--a)) { + p { color: green; } +} |