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

Side by Side Diff: Source/web/tests/data/select_range_basic_broken_height.html

Issue 236083003: Use document's contentSize when the HTML element is selected. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 | « Source/web/tests/WebViewTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html id='root'> 2 <html id='root' style='height: 20px;'>
3 <body> 3 <body style='height: 40px;'>
4 Some extra text. 4 Some extra text.
5 <span id='target'>Some test text for testing.</span> 5 <span id='target'>Some test text for testing.</span>
6 Some extra text. 6 Some extra text.
7 <script> 7 <script>
8 function select() { 8 function select() {
9 var range = document.createRange(); 9 var range = document.createRange();
10 range.selectNode(document.getElementById('target')); 10 range.selectNode(document.getElementById('target'));
11 window.getSelection().addRange(range); 11 window.getSelection().addRange(range);
12 } 12 }
13 window.onload = select; 13 window.onload = select;
14 </script> 14 </script>
15 </body> 15 </body>
16 </html> 16 </html>
17 17
OLDNEW
« no previous file with comments | « Source/web/tests/WebViewTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698