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

Unified Diff: third_party/WebKit/LayoutTests/hittesting/inner-border-radius-hittest.html

Issue 1897753002: Check scrollbars before hit testing border radius (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/hittesting/inner-border-radius-hittest.html
diff --git a/third_party/WebKit/LayoutTests/hittesting/inner-border-radius-hittest.html b/third_party/WebKit/LayoutTests/hittesting/inner-border-radius-hittest.html
index 1ab04405384d64b045f517f74a24e61aacf6859a..6a0ee6625afd3ac78145e2ecb9d9179af0919f65 100644
--- a/third_party/WebKit/LayoutTests/hittesting/inner-border-radius-hittest.html
+++ b/third_party/WebKit/LayoutTests/hittesting/inner-border-radius-hittest.html
@@ -41,6 +41,10 @@ function test() {
shouldBe("document.elementFromPoint(x + 265, y + 265).id", "'roundedBoxWithScrollbars'");
// At bottom-right corner with scrollbars, outside the outer border radius.
shouldBe("document.elementFromPoint(x + 275, y + 275).id", "'container'");
+ // At bottom-center on scrollbar and inside inner border radius.
+ shouldBe("document.elementFromPoint(x + 150, y + 240).id", "'roundedBoxWithScrollbars'");
+ // At center-right on scrollbar and inside inner border radius.
+ shouldBe("document.elementFromPoint(x + 240, y + 150).id", "'roundedBoxWithScrollbars'");
chrishtr 2016/04/18 16:17:38 I'm struggling a bit to understand the logic chang
}
</script>
<style>

Powered by Google App Engine
This is Rietveld 408576698