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

Side by Side Diff: third_party/WebKit/LayoutTests/hittesting/border-hittest-with-image-fallback.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 In your last reply you said "The new test(border-h
Miyoung Shin(c) 2016/04/03 14:39:25 I'm really sorry but I missed to revert https://cr
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <style>
5 img {
6 background-color:red;
7 border-radius: 50px;
8 }
9 </style>
10 <body>
11 <img id="roundedImg" src="none" width="100px" height="100px" />
12 <div id="log"></div>
13 </body>
14 <script>
15 test(function(t)
16 {
17 var element = document.getElementById("roundedImg");
18 var x = element.offsetLeft + element.offsetWidth - 2;
19 var y = element.offsetTop + element.offsetHeight - 2;
20
21 var element = document.elementFromPoint(x, y);
22 assert_equals(element.nodeName, 'BODY');
23 }, "elementFromPoint should return an element under a point that is clipped to a border-radius");
24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698