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

Side by Side Diff: LayoutTests/fast/dom/nodesFromRect/nodesFromRect-culled-inline-with-linebreak.html

Issue 685963002: We need to account for culled inline parents of the hit-tested nodes.(Reland) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 <html> 2 <html>
3 <head> 3 <head>
4 <title>Document::nodesFromRect : culled inline with line-break - bug 88376</ title> 4 <title>Document::nodesFromRect : culled inline with line-break - bug 88376</ title>
5 <script src="../../../resources/js-test.js"></script> 5 <script src="../../../resources/js-test.js"></script>
6 <script src="resources/nodesFromRect.js"></script> 6 <script src="resources/nodesFromRect.js"></script>
7 <style> 7 <style>
8 #sandbox { 8 #sandbox {
9 position: absolute; 9 position: absolute;
10 left: 0px; 10 left: 0px;
(...skipping 14 matching lines...) Expand all
25 <script type="application/javascript"> 25 <script type="application/javascript">
26 function runTest() 26 function runTest()
27 { 27 {
28 description(document.title); 28 description(document.title);
29 window.scrollTo(0, 0); 29 window.scrollTo(0, 0);
30 /* Rect based test over word1 only. */ 30 /* Rect based test over word1 only. */
31 checkRect(110, 25, 10, 10, "'word1 '"); 31 checkRect(110, 25, 10, 10, "'word1 '");
32 /* Rect based test over the word2 only. */ 32 /* Rect based test over the word2 only. */
33 checkRect(20, 45, 10, 10, "'word2'"); 33 checkRect(20, 45, 10, 10, "'word2'");
34 /* Rect based test not contained by culledinline, but contained by i ts bounding box. */ 34 /* Rect based test not contained by culledinline, but contained by i ts bounding box. */
35 checkRect(20, 35, 10, 20, "'word2', SPAN#wordinline2, SPAN#culledinl ine, P, 'Word '"); 35 checkRect(20, 35, 10, 20, "'word2', SPAN#wordinline2, P, SPAN#culled inline, 'Word '");
36 /* Note the order of P and 'Word ' is slightly unusual, but this is due to lines being tested one by one. */ 36 /* Note the order of P and 'Word ' is slightly unusual, but this is due to lines being tested one by one. */
37 37
38 document.getElementById('sandbox').style.display = 'none'; 38 document.getElementById('sandbox').style.display = 'none';
39 } 39 }
40 runTest(); 40 runTest();
41 </script> 41 </script>
42 </body> 42 </body>
43 </html> 43 </html>
44 44
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698