Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
|
pdr.
2014/12/10 07:16:19
This example doesn't seem to work with your patch:
Miyoung Shin(g)
2014/12/12 14:46:57
I added two kind of tests in this patch.
One is t
| |
| 2 <style type="text/css"> | |
| 3 body { font-size: 20px; } | |
| 4 </style> | |
| 5 <div> | |
| 6 <font><a href="#">HIT ME1<br><a href="#" id="test"><b>HIT ME2</b> </a><span ><a href="#">HIT ME3</a></span></font> | |
| 7 </div> | |
| 8 <script src="../../../resources/js-test.js"></script> | |
| 9 <script src="resources/nodesFromRect.js"></script> | |
| 10 <script type="text/javascript"> | |
| 11 description('Test to get the node as a result of hit-tests from culled inlin es between siblings'); | |
| 12 | |
| 13 if (window.internals) { | |
| 14 var test = document.getElementById('test'); | |
| 15 checkRect(test.offsetLeft + 4, test.offsetTop - 4, 2, 2, "'HIT ME1'"); | |
| 16 checkRect(test.offsetLeft + 4, test.offsetTop + 4, 2, 2, "'HIT ME2'"); | |
| 17 checkRect(test.offsetLeft + test.offsetWidth + 4, test.offsetTop + 4, 2, 2, "'HIT ME3'"); | |
| 18 } | |
| 19 </script> | |
| OLD | NEW |