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

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

Issue 1657483003: Add a border radius property to inherit it from a parent in a fallback content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
pdr. 2016/03/31 04:20:11 Can you move these test under hittesting? i.e.: h
Miyoung Shin(c) 2016/04/03 14:39:25 Done.
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

Powered by Google App Engine
This is Rietveld 408576698