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

Side by Side Diff: LayoutTests/fast/forms/suggested-value-hides-placeholder.html

Issue 236033002: Hide textarea placeholder text when showing autofill suggestion (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: now with 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/forms/suggested-value-hides-placeholder-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 <html>
2 <body>
3 <p>Test for <a href="https://code.google.com/p/chromium/issues/detail?id=36260 7">https://code.google.com/p/chromium/issues/detail?id=362607</a>.</p> Makes sur e that the placeholder text is hidden by a suggested value.
4
5 <input placeholder="placeholder text"></input>
6 <textarea placeholder="placeholder text"></textarea>
7
8 <script type="text/javascript" charset="utf-8">
9 if (!window.internals) {
10 testFailed('This test requires internals object');
11 } else {
12 internals.setSuggestedValue(document.querySelector('input'), 'suggest' );
13 internals.setSuggestedValue(document.querySelector('textarea'), 'sugge st');
14 }
15 </script>
16 </body>
17 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/suggested-value-hides-placeholder-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698