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

Unified Diff: third_party/WebKit/LayoutTests/fast/borders/border-radius-hittest.html

Issue 1513663002: Include inner border radius in block hit testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Create hittesting directory for tests Created 5 years 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: third_party/WebKit/LayoutTests/fast/borders/border-radius-hittest.html
diff --git a/third_party/WebKit/LayoutTests/fast/borders/border-radius-hittest.html b/third_party/WebKit/LayoutTests/fast/borders/border-radius-hittest.html
deleted file mode 100644
index eb0db98fb015e35a534d9370bd0307fe087df8e2..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/borders/border-radius-hittest.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<!DOCTYPE html>
-<script src="../../resources/js-test.js"></script>
-<script>
-var x, y;
-
-function test() {
- var innerBox = document.getElementById('roundedBox');
- var rect = innerBox.getBoundingClientRect();
- x = rect.left;
- y = rect.top;
- // At top-left corner.
- shouldBe("document.elementFromPoint(x + 5, y + 5).id", "'container'");
- // At top-right corner.
- shouldBe("document.elementFromPoint(x + 195, y + 5).id", "'container'");
- // At bottom-left corner.
- shouldBe("document.elementFromPoint(x + 5, y + 195).id", "'container'");
- // At bottom-right corner.
- shouldBe("document.elementFromPoint(x + 195, y + 195).id", "'container'");
- // At the center.
- shouldBe("document.elementFromPoint(x + 100, y + 100).id", "'roundedBox'");
-}
-</script>
-<style>
- #container {
- width: 200px;
- height: 200px;
- background-color: lightgray;
- }
- #roundedBox {
- width: 200px;
- height: 200px;
- border-radius: 50px;
- background-color: lightgreen;
- }
-</style>
-<body onload="test()">
- <p>This test checks that div block should not get events on clicking outside the rounded border but within the bounding box of the block.</p>
- <div id="container">
- <div id="roundedBox"></div>
- </div>
- <div id="console"></div>
-</body>

Powered by Google App Engine
This is Rietveld 408576698