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

Side by Side Diff: third_party/WebKit/LayoutTests/hittesting/hittest-inline-block-with-abspos.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>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <style>
5 #abs {
6 position: absolute;
7 top: 0px;
8 left: 0px;
9 visibility: hidden;
10 }
11 #abs-inner {
12 width: 96px;
13 height: 96px;
14 display: inline-block;
15 border-radius: 50%;
16 }
17 </style>
18 <span id="inner"> Mouse over me! </span>
19 <div id="abs"><div id="abs-inner"></div></div>
20 <div id="log"></div>
21 <script>
22 test(function(t)
23 {
24 var element = document.getElementById("inner");
25 var x = element.offsetLeft + element.offsetWidth / 2;
26 var y = element.offsetTop + element.offsetHeight / 2;
27
28 var element = document.elementFromPoint(x, y);
29 assert_equals(element.nodeName, 'SPAN');
30 assert_equals(element.id, 'inner');
31 }, "elementFromPoint should return an visible element under a point");
32 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698