summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-variables/support
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /testing/web-platform/tests/css/css-variables/support
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-variables/support')
-rw-r--r--testing/web-platform/tests/css/css-variables/support/color-green-ref.html13
-rw-r--r--testing/web-platform/tests/css/css-variables/support/external-variable-declaration.css5
-rw-r--r--testing/web-platform/tests/css/css-variables/support/external-variable-font-face.css15
-rw-r--r--testing/web-platform/tests/css/css-variables/support/external-variable-reference.css6
-rw-r--r--testing/web-platform/tests/css/css-variables/support/external-variable-supports.css4
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; }
+}