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

Unified Diff: LayoutTests/fast/dom/nodesFromRect/nodesFromRect-culled-inlines-between-silblings-bidi.html

Issue 947793002: Reland "We need to account for culled inline parents of hit-tested nodes" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/nodesFromRect/nodesFromRect-culled-inlines-between-silblings-bidi.html
diff --git a/LayoutTests/fast/dom/nodesFromRect/nodesFromRect-culled-inlines-between-silblings-bidi.html b/LayoutTests/fast/dom/nodesFromRect/nodesFromRect-culled-inlines-between-silblings-bidi.html
new file mode 100644
index 0000000000000000000000000000000000000000..1b0be1353a0412b54670112369125c1d9b5ba26b
--- /dev/null
+++ b/LayoutTests/fast/dom/nodesFromRect/nodesFromRect-culled-inlines-between-silblings-bidi.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<style type="text/css">
+ body { font-size: 20px; }
+</style>
+<div>
+ <font dir="rtl"><a href="#">12 <b id="test">34 </b><b>56 </b><span><a href="#">78 </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 - 8, test.offsetTop + 4, 2, 2, "'56 '");
+ checkRect(test.offsetLeft + 8, test.offsetTop + 4, 2, 2, "'34 '");
+ checkRect(test.offsetLeft + test.offsetWidth + 8, test.offsetTop + 4, 2, 2, "'12 '");
+ }
+</script>

Powered by Google App Engine
This is Rietveld 408576698