Index: LayoutTests/fast/selectors/input-with-selection-pseudo-element.html |
diff --git a/LayoutTests/fast/selectors/input-with-selection-pseudo-element.html b/LayoutTests/fast/selectors/input-with-selection-pseudo-element.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..25c20c0b8d2586db9dbdd0019a2479730963c833 |
--- /dev/null |
+++ b/LayoutTests/fast/selectors/input-with-selection-pseudo-element.html |
@@ -0,0 +1,11 @@ |
+<!DOCTYPE html> |
+<style> |
+ ::selection { background-color: rgba(63, 128, 33, 0.95); color: yellow; } |
+</style> |
+<input id="inputText" type="text" value="Hello" style="border: 5px solid; |
+ width:100px; font-size: 16px; font-family:sans-serif; |
+ padding: 0; margin: 0; outline:none;"><br> |
+<br>The above selected text in the input box should have green background and yellow color. |
+<script> |
+ window.onload = document.getElementById('inputText').select(); |
+</script> |