aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support')
-rw-r--r--tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/ahem.css4
-rw-r--r--tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/color-green-ref.html13
-rw-r--r--tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/color-green-ref.xht13
-rw-r--r--tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/external-variable-declaration.css5
-rw-r--r--tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/external-variable-font-face.css15
-rw-r--r--tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/external-variable-reference.css6
-rw-r--r--tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/external-variable-supports.css4
7 files changed, 60 insertions, 0 deletions
diff --git a/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/ahem.css b/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/ahem.css
new file mode 100644
index 00000000000..0d4bcedc21b
--- /dev/null
+++ b/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/ahem.css
@@ -0,0 +1,4 @@
+@font-face {
+ font-family: "Ahem";
+ src: url(../../../../fonts/Ahem.ttf);
+}
diff --git a/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/color-green-ref.html b/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/color-green-ref.html
new file mode 100644
index 00000000000..628466d5c2a
--- /dev/null
+++ b/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/color-green-ref.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<!--
+ Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/
+--><html><head><title>CSS Reftest Reference</title>
+<link href="mailto:cam@mcc.id.au" rel="author" title="Cameron McCormack">
+<style>
+p {
+ color: green;
+}
+</style>
+</head><body><p>This text must be green.</p>
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/color-green-ref.xht b/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/color-green-ref.xht
new file mode 100644
index 00000000000..9165afafe48
--- /dev/null
+++ b/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/color-green-ref.xht
@@ -0,0 +1,13 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<!--
+ Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/
+--><html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Reftest Reference</title>
+<link href="mailto:cam@mcc.id.au" rel="author" title="Cameron McCormack" />
+<style>
+p {
+ color: green;
+}
+</style>
+</head><body><p>This text must be green.</p>
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/external-variable-declaration.css b/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/external-variable-declaration.css
new file mode 100644
index 00000000000..9ba1b9d3288
--- /dev/null
+++ b/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/external-variable-declaration.css
@@ -0,0 +1,5 @@
+p {
+ color: red;
+ --a: green;
+ color: var(--a);
+}
diff --git a/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/external-variable-font-face.css b/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/external-variable-font-face.css
new file mode 100644
index 00000000000..38c86f0cca7
--- /dev/null
+++ b/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/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;
+}
+#b {
+ font-family: MyTestFontName2;
+}
diff --git a/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/external-variable-reference.css b/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/external-variable-reference.css
new file mode 100644
index 00000000000..0c697fdcf91
--- /dev/null
+++ b/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/external-variable-reference.css
@@ -0,0 +1,6 @@
+:root {
+ --a: green;
+}
+p {
+ color: var(--a);
+}
diff --git a/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/external-variable-supports.css b/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/external-variable-supports.css
new file mode 100644
index 00000000000..96582bfd8f1
--- /dev/null
+++ b/tests/wpt/css-tests/css-variables-1_dev/xhtml1/reference/support/external-variable-supports.css
@@ -0,0 +1,4 @@
+body { color: red; }
+@supports (color:var(--a)) {
+ p { color: green; }
+}