Index: LayoutTests/fast/backgrounds/selection-background-color-of-list-style.html |
diff --git a/LayoutTests/fast/backgrounds/selection-background-color-of-list-style.html b/LayoutTests/fast/backgrounds/selection-background-color-of-list-style.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a99babbafcf4109b0628c793644b20d19777748f |
--- /dev/null |
+++ b/LayoutTests/fast/backgrounds/selection-background-color-of-list-style.html |
@@ -0,0 +1,22 @@ |
+<!DOCTYPE html> |
+<style> |
+ul>li::selection { background: red; } |
+ol>li::selection { background: yellow; } |
+</style> |
+<div> |
+ Test passes if backgrounds of list style in ul and ol are each red and yellow. |
+ <ul> |
+ <li>One</li> |
+ <li>Two</li> |
+ </ul> |
+ <ol> |
+ <li>One</li> |
+ <li>Two</li> |
+ </ol> |
+</div> |
+<script> |
+var range = document.createRange(); |
+range.setStartBefore(document.querySelector('ul')); |
+range.setEndAfter(document.querySelector('ol')); |
+getSelection().addRange(range); |
+</script> |