summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-variables/variable-reference-visited-ref.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/css/css-variables/variable-reference-visited-ref.html
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-variables/variable-reference-visited-ref.html')
-rw-r--r--testing/web-platform/tests/css/css-variables/variable-reference-visited-ref.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-variables/variable-reference-visited-ref.html b/testing/web-platform/tests/css/css-variables/variable-reference-visited-ref.html
new file mode 100644
index 0000000000..8647be19a8
--- /dev/null
+++ b/testing/web-platform/tests/css/css-variables/variable-reference-visited-ref.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<title>Verify that colors with var() references apply in visited link context</title>
+<link rel="help" href="https://drafts.csswg.org/css-variables/#using-variables">
+<style>
+ div {
+ min-height: 10px;
+ margin-bottom: 10px;
+ }
+
+ .color { color: green; }
+ .background_color { background-color: green; }
+ .border { border: medium solid green; }
+ .outline { outline: medium solid green; }
+ .text_decoration { text-decoration: solid underline green; }
+ .column_rule { columns: 2; column-rule: medium solid green; }
+ .stroke { stroke: green; fill: white; }
+ .fill { fill: green; }
+</style>
+<a href="">
+ <div class="color">Text should be green</div>
+ <div class="background_color"></div>
+ <div class="border"></div>
+ <div class="border"></div>
+ <div class="border"></div>
+ <div class="border"></div>
+ <div class="outline"></div>
+ <div class="outline"></div>
+ <div class="text_decoration">Underline should be green</div>
+ <div class="text_decoration">Underline should be green</div>
+ <div class="column_rule"><div style="height: 20px"></div></div>
+ <div class="column_rule"><div style="height: 20px"></div></div>
+ <svg width="20" height="50">
+ <rect class="stroke" x="5" y="5" width="10" height="10" />
+ <rect class="fill" x="5" y="20" width="10" height="10" />
+ </svg>
+</a>