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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/borders/border-hittest-inlineFlowBox.html
diff --git a/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html b/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html
new file mode 100644
index 0000000000000000000000000000000000000000..059b7a83d33b3301307e996923d164a0a5b13106
--- /dev/null
+++ b/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html
@@ -0,0 +1,35 @@
+<!doctype html>
+<html>
+<head>
+<script src="../../resources/js-test.js"></script>
+<style>
+body { margin: 2em; }
+
+#test {
+ background-color: green;
+ border-radius: 50px;
+ padding: 1em;
+ line-height: 4em;
+}
+
+#test:hover {
+ background-color:red;
+}
+</style>
+</head>
+<body>
+<span id="test">
+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.
+</span>
+<br><br><br>
+<div id="console"></div>
+</body>
+<script>
+description('If this test passes, area outside border radius is body element.');
+var rects = document.getElementById('test').getClientRects();
+var elementInTopLeftCorner = document.elementFromPoint(rects[0].left, rects[0].top);
+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.
+elementInTopLeftCorner = document.elementFromPoint(rects[1].left, rects[1].top);
+shouldBe('elementInTopLeftCorner.nodeName', '"SPAN"');
+</script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698