Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(668)

Side by Side Diff: LayoutTests/fast/selectors/input-with-selection-pseudo-element.html

Issue 220343006: Fix for ::selection pseudo element to work on input elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adding another Layout Test Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/selectors/input-with-selection-pseudo-element-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 ::selection { background-color: rgba(63, 128, 33, 0.95); color: yellow; }
4 </style>
5 <input id="inputText" type="text" value="Hello" style="border: 5px solid;
6 width:100px; font-size: 16px; font-family:sans-serif;
7 padding: 0; margin: 0; outline:none;"><br>
8 <br>The above selected text in the input box should have green background and ye llow color.
9 <script>
10 window.onload = document.getElementById('inputText').select();
11 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/selectors/input-with-selection-pseudo-element-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698