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

Unified Diff: third_party/WebKit/LayoutTests/fast/borders/border-hittest-inlineFlowBox.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-hittest-inlineFlowBox.html
diff --git a/third_party/WebKit/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html b/third_party/WebKit/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html
deleted file mode 100644
index cbca48d1e7c61088981ba4c77b125592a7835f72..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<!doctype html>
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-<style>
-span {
- background-color: lightgray;
- border-radius: 2em;
- padding: 1em;
- line-height: 4em;
-}
-
-label {
- padding: 2em;
- background-color: lightgreen;
- border-radius: 2em;
-}
-
-div {
- margin: 2em;
-}
-</style>
-</head>
-<body>
-<div>
-<span id="A">
-Two lines with <br/>a hard line break.
-</span>
-</div>
-<div>
-<span id="B">B<label id="C">C</label></span>
-</div>
-<div>
-<span id="D" style="padding: 2em;">D<label id="E" style="padding: 1em;">E</label></span>
-</div>
-<div id="console"></div>
-</body>
-<script>
-description('If this test passes, area outside border radius is body element.');
-
-var rects = document.getElementById('A').getClientRects();
-var elementInTopLeftCorner = document.elementFromPoint(rects[0].left, rects[0].top);
-shouldBeEqualToString('elementInTopLeftCorner.nodeName', 'DIV');
-elementInTopLeftCorner = document.elementFromPoint(rects[1].left, rects[1].top);
-shouldBeEqualToString('elementInTopLeftCorner.nodeName', 'SPAN');
-
-var rect = document.getElementById('B').getBoundingClientRect();
-elementInTopLeftCorner = document.elementFromPoint(rect.left, rect.top);
-shouldBeEqualToString('elementInTopLeftCorner.nodeName', 'DIV');
-
-rect = document.getElementById('C').getBoundingClientRect();
-elementInTopLeftCorner = document.elementFromPoint(rect.left, rect.top);
-shouldBeEqualToString('elementInTopLeftCorner.nodeName', 'BODY');
-
-rect = document.getElementById('D').getBoundingClientRect();
-elementInTopLeftCorner = document.elementFromPoint(rect.left, rect.top);
-shouldBeEqualToString('elementInTopLeftCorner.nodeName', 'BODY');
-
-rect = document.getElementById('E').getBoundingClientRect();
-elementInTopLeftCorner = document.elementFromPoint(rect.left, rect.top);
-shouldBeEqualToString('elementInTopLeftCorner.nodeName', 'SPAN');
-</script>
-</html>

Powered by Google App Engine
This is Rietveld 408576698