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

Unified Diff: third_party/WebKit/LayoutTests/fast/inline-block/hittest-inline-block-with-abspos.html

Issue 1657483003: Add a border radius property to inherit it from a parent in a fallback content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/LayoutTests/fast/inline-block/hittest-inline-block-with-abspos.html
diff --git a/third_party/WebKit/LayoutTests/fast/inline-block/hittest-inline-block-with-abspos.html b/third_party/WebKit/LayoutTests/fast/inline-block/hittest-inline-block-with-abspos.html
new file mode 100644
index 0000000000000000000000000000000000000000..5d973caad0507b0dac2c0e325bcfbb472d9ffcef
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/inline-block/hittest-inline-block-with-abspos.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<style>
+#abs {
+ position: absolute;
+ top: 0px;
+ left: 0px;
+ visibility: hidden;
pdr. 2016/03/31 04:20:11 What is this test testing? Which c++ line from thi
Miyoung Shin(c) 2016/04/03 14:39:25 This is to prevent the regression that I made at h
+}
+#abs-inner {
+ width: 96px;
+ height: 96px;
+ display: inline-block;
+ border-radius: 50%;
+}
+</style>
+<span id="inner"> Mouse over me! </span>
+<div id="abs"><div id="abs-inner"></div> </div>
pdr. 2016/03/31 04:20:11 Nit: trailing whitespace
Miyoung Shin(c) 2016/04/03 14:39:25 Done.
+<div id="log"></div>
+<script>
+test(function(t)
+{
+ var element = document.getElementById("inner");
+ var x = element.offsetLeft + element.offsetWidth / 2;
+ var y = element.offsetTop + element.offsetHeight / 2;
+
+ var element = document.elementFromPoint(x, y);
+ assert_equals(element.nodeName, 'SPAN');
+ assert_equals(element.id, 'inner');
+}, "elementFromPoint should return an visible element under a point");
+</script>

Powered by Google App Engine
This is Rietveld 408576698