From 634ce37663e1a77532c1612989d09166c3209841 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 23 May 2020 21:06:24 +0200 Subject: [PATCH] LibWeb: Make hit-testing work with display: inline-block; When hit testing encountered a block with inline children, we assumed that the inline children are nothing but text boxes. An inline-block box is actually a block child of a block with inline children, so we have to handle that scenario as well. :^) Fixes #2353. --- Base/home/anon/www/inline-block-link.html | 15 +++++++++++++++ Base/home/anon/www/welcome.html | 1 + Libraries/LibWeb/Layout/LayoutBlock.cpp | 2 ++ 3 files changed, 18 insertions(+) create mode 100644 Base/home/anon/www/inline-block-link.html diff --git a/Base/home/anon/www/inline-block-link.html b/Base/home/anon/www/inline-block-link.html new file mode 100644 index 0000000000..c74a691e04 --- /dev/null +++ b/Base/home/anon/www/inline-block-link.html @@ -0,0 +1,15 @@ + + + + + +

+ Here is some test text. + Here is a test link. +

+ + diff --git a/Base/home/anon/www/welcome.html b/Base/home/anon/www/welcome.html index 927651e724..adb12f2f03 100644 --- a/Base/home/anon/www/welcome.html +++ b/Base/home/anon/www/welcome.html @@ -28,6 +28,7 @@ span#ua {

Your user agent is:

Some small test pages: