summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-variables/vars-background-shorthand-001.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-variables/vars-background-shorthand-001.html
parentInitial commit. (diff)
downloadfirefox-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/vars-background-shorthand-001.html')
-rw-r--r--testing/web-platform/tests/css/css-variables/vars-background-shorthand-001.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-variables/vars-background-shorthand-001.html b/testing/web-platform/tests/css/css-variables/vars-background-shorthand-001.html
new file mode 100644
index 0000000000..df02a8f5ef
--- /dev/null
+++ b/testing/web-platform/tests/css/css-variables/vars-background-shorthand-001.html
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<title>CSS Variables 1: Test variables in background shorthand.</title>
+<link rel="author" title="Lea Verou" href="mailto:lea@verou.me">
+<link rel="help" href="https://www.w3.org/TR/css-variables-1/#variables-in-shorthands">
+<link rel="match" href="reference/vars-background-shorthand-001-ref.html">
+<meta name="fuzzy" content="maxDifference=0-1; totalPixels=0-17900">
+<style>
+div {
+ width: 50px;
+ height: 50px;
+ padding: 50px;
+ margin: 10px;
+ display: inline-block;
+ background: red;
+}
+
+div#d1 {
+ --foo: green;
+ background: var(--foo);
+}
+
+div#d2 {
+ --foo: green, green;
+ background: linear-gradient(var(--foo));
+}
+
+div#d3 {
+ --foo: linear-gradient(green, green);
+ background: var(--foo);
+}
+
+div#d4 {
+ --foo: center / 0 0;
+ background: green linear-gradient(red, red) var(--foo, );
+}
+</style>
+<p>Test passes if you see four green squares, and no red.</p>
+<div id="d1"></div>
+<div id="d2"></div>
+<div id="d3"></div>
+<div id="d4"></div>
+
+
+