Chromium Code Reviews| 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..29d697f15b890f80d10f873bbe522e7e020e2ad8 |
| --- /dev/null |
| +++ b/LayoutTests/fast/selectors/input-with-selection-pseudo-element.html |
| @@ -0,0 +1,9 @@ |
| +<!DOCTYPE html> |
| +<style> |
| + ::selection { background: green; color: yellow; } |
| +</style> |
| +<input id="inputText" type="text" value="Hello"></input> |
| +<br>The above selected text in the input box should have green background and yellow color. |
| +<script> |
| + window.onload = document.getElementById('inputText').select(); |
| +</script> |