summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-pseudo/highlight-cascade/highlight-cascade-008-ref.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-pseudo/highlight-cascade/highlight-cascade-008-ref.html')
-rw-r--r--testing/web-platform/tests/css/css-pseudo/highlight-cascade/highlight-cascade-008-ref.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-pseudo/highlight-cascade/highlight-cascade-008-ref.html b/testing/web-platform/tests/css/css-pseudo/highlight-cascade/highlight-cascade-008-ref.html
new file mode 100644
index 0000000000..70b9d958b5
--- /dev/null
+++ b/testing/web-platform/tests/css/css-pseudo/highlight-cascade/highlight-cascade-008-ref.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<title>Custom property values from the root element</title>
+<script src="../support/selections.js"></script>
+<style>
+ div::selection {
+ background-color: green;
+ text-decoration-line: underline;
+ text-decoration-style: line;
+ text-decoration-thickness: 1px;
+ text-decoration-color: yellow;
+ }
+ span::selection {
+ background-color: blue;
+ }
+</style>
+<div style="width: 300px">PASS if background-color is green when selected, <span>except this which is blue</span>, and underline is yellow.<script>
+ selectNodeContents(document.querySelector("div"));
+</script> \ No newline at end of file