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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-scrolled-mask.html

Issue 1524663002: Move textarea-related tests to fast/forms/textarea/, part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <head> 2 <head>
3 <style> 3 <style>
4 #ta { 4 #ta {
5 background-color: lightGray; 5 background-color: lightGray;
6 -webkit-mask: url(resources/rect.svg); 6 -webkit-mask: url(resources/rect.svg);
7 } 7 }
8 </style> 8 </style>
9 <script> 9 <script>
10 function test() 10 function test()
11 { 11 {
12 // Scroll to the bottom of the text area and remove focus so that painting o f outline/focus ring don't affect test result. 12 // Scroll to the bottom of the text area and remove focus so that painting o f outline/focus ring don't affect test result.
13 ta.setSelectionRange(ta.value.length, ta.value.length); 13 ta.setSelectionRange(ta.value.length, ta.value.length);
14 ta.focus(); 14 ta.focus();
15 ta.blur(); 15 ta.blur();
16 } 16 }
17 </script> 17 </script>
18 </head> 18 </head>
19 <body onload="test()"> 19 <body onload="test()">
20 Test passes if the textarea's gray background and text are masked off to a 10x10 rect.<br> 20 Test passes if the textarea's gray background and text are masked off to a 10x10 rect.<br>
21 <textarea id="ta" rows=2> 21 <textarea id="ta" rows=2>
22 1 22 1
23 2 23 2
24 3 24 3
25 4 25 4
26 </textarea> 26 </textarea>
27 </body> 27 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698