Index: LayoutTests/fast/dom/nodesFromRect/nodesFromRect-culled-inlines-between-silblings.html |
diff --git a/LayoutTests/fast/dom/nodesFromRect/nodesFromRect-culled-inlines-between-silblings.html b/LayoutTests/fast/dom/nodesFromRect/nodesFromRect-culled-inlines-between-silblings.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..44963fc50fe75ed3f389221319ce0ca929057657 |
--- /dev/null |
+++ b/LayoutTests/fast/dom/nodesFromRect/nodesFromRect-culled-inlines-between-silblings.html |
@@ -0,0 +1,19 @@ |
+<!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
|
+<style type="text/css"> |
+ body { font-size: 20px; } |
+</style> |
+<div> |
+ <font><a href="#">HIT ME1<br><a href="#" id="test"><b>HIT ME2</b> </a><span><a href="#">HIT ME3</a></span></font> |
+</div> |
+<script src="../../../resources/js-test.js"></script> |
+<script src="resources/nodesFromRect.js"></script> |
+<script type="text/javascript"> |
+ description('Test to get the node as a result of hit-tests from culled inlines between siblings'); |
+ |
+ if (window.internals) { |
+ var test = document.getElementById('test'); |
+ checkRect(test.offsetLeft + 4, test.offsetTop - 4, 2, 2, "'HIT ME1'"); |
+ checkRect(test.offsetLeft + 4, test.offsetTop + 4, 2, 2, "'HIT ME2'"); |
+ checkRect(test.offsetLeft + test.offsetWidth + 4, test.offsetTop + 4, 2, 2, "'HIT ME3'"); |
+ } |
+</script> |