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

Side by Side Diff: LayoutTests/fast/borders/border-hittest-inlineFlowBox.html

Issue 1034433003: Hittest for RootInlineBox/InlineFlowBox should take care of border-radius. (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 unified diff | Download patch
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 <style>
6 body { margin: 2em; }
7
8 #test {
9 background-color: green;
10 border-radius: 50px;
11 padding: 1em;
12 }
13
14 #test:hover {
davve 2015/03/24 13:26:03 You want to keep the hover rule for manual testing
Abhijeet Kandalkar Slow 2015/03/24 14:42:44 Yes, it is for manual testing. Keeping span:hover
15 background-color:red;
16 }
17 </style>
18 </head>
19 <body>
20 <span id="test">
21 <button>dummy</button>
22 </span>
23 <br><br><br>
24 <div id="console"></div>
davve 2015/03/24 13:26:03 You may drop this element? Would probably require
Abhijeet Kandalkar Slow 2015/03/24 14:42:44 Same as above. For better readability during manua
25 </body>
26 <script>
27 description('If this test passes, area outside is body element.');
davve 2015/03/24 13:26:03 ... area outside border radius is body element ...
Abhijeet Kandalkar Slow 2015/03/24 14:42:44 Done.
28 var offset = 4;
29 var expectedTarget = document.getElementById('test');
30 var rect = expectedTarget.getBoundingClientRect();
31 var element = document.elementFromPoint(rect.right - offset, rect.bottom - offse t);
32 shouldBe('element.nodeName', '"BODY"');
33 </script>
34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698