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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/inline-block/hittest-child-of-inlineblock.html

Issue 1616673005: Revert "Fix-up a wrong hit testing when a parent inline has border radius." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | third_party/WebKit/Source/core/layout/line/InlineBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <style>
5 #roundedDiv {
6 width: 200px;
7 height: 200px;
8 border-radius: 5px;
9 border: 5px solid transparent;
10 display: inline-block;
11 }
12 #roundedDivChild {
13 width: 200px;
14 height: 100px;
15 margin-left: 400px;
16 }
17 </style>
18 <div id="roundedDiv">
19 <div id="roundedDivChild">Mouse over me!<br>The box should turn green.</div>
20 </div>
21 <div id="log"></div>
22 <script>
23 test(function(t)
24 {
25 var element = document.getElementById("roundedDivChild");
26 var x = element.offsetLeft + element.offsetWidth / 2;
27 var y = element.offsetTop + element.offsetHeight / 2;
28
29 var element = document.elementFromPoint(x, y);
30 assert_equals(element.nodeName, 'DIV');
31 assert_equals(element.id, 'roundedDivChild');
32 }, "elementFromPoint should return an element under a point");
33 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/line/InlineBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698