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

Unified Diff: third_party/WebKit/LayoutTests/hittesting/culled-inline.html

Issue 1588003003: Incorrect element hit testing for inline elements containing children with transform applied (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update code and comments Created 4 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/hittesting/culled-inline-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/hittesting/culled-inline.html
diff --git a/third_party/WebKit/LayoutTests/hittesting/culled-inline.html b/third_party/WebKit/LayoutTests/hittesting/culled-inline.html
new file mode 100644
index 0000000000000000000000000000000000000000..61fa8c267e36d3cf270a524739642296418e4c0d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/hittesting/culled-inline.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../resources/js-test.js"></script>
+<style>
+#culled:hover {
+ background-color: green;
+}
+.left {
+ display: inline-block;
+ transform: translateY(0px);
+ border: 1px solid black;
+}
+.right {
+ margin-left: 200px;
+ border: 1px solid black;
+}
+</style>
+</head>
+<body>
+<div id="container">
+<span id="culled">
+ <span class="left">Hello</span>
+ <span class="right">World</span>
+</span>
+</div>
+<div id="console"></div>
+</body>
+<script>
+description('To manually test, hover between the two words to see if background color turns green.');
+
+var rect = document.getElementById('culled').getBoundingClientRect();
+element = document.elementFromPoint(rect.left + rect.width/2, rect.top + rect.height/2);
+shouldBeEqualToString('element.id', 'culled');
+</script>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/hittesting/culled-inline-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698