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

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 line-height: 4em;
13 }
14
15 #test:hover {
16 background-color:red;
17 }
18 </style>
19 </head>
20 <body>
21 <span id="test">
22 Two line with <br/>a hard line break.
davve 2015/03/26 10:03:36 lines
Abhijeet Kandalkar Slow 2015/03/27 11:28:59 Done.
23 </span>
24 <br><br><br>
25 <div id="console"></div>
26 </body>
27 <script>
28 description('If this test passes, area outside border radius is body element.');
29 var rects = document.getElementById('test').getClientRects();
30 var elementInTopLeftCorner = document.elementFromPoint(rects[0].left, rects[0].t op);
31 shouldBe('elementInTopLeftCorner.nodeName', '"BODY"');
davve 2015/03/26 10:03:36 Instead of these two shouldBe you could use should
Abhijeet Kandalkar Slow 2015/03/27 11:28:59 Done.
32 elementInTopLeftCorner = document.elementFromPoint(rects[1].left, rects[1].top);
33 shouldBe('elementInTopLeftCorner.nodeName', '"SPAN"');
34 </script>
35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698