mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:27:34 +00:00
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.
This commit is contained in:
parent
a01fd7ecc5
commit
634ce37663
3 changed files with 18 additions and 0 deletions
15
Base/home/anon/www/inline-block-link.html
Normal file
15
Base/home/anon/www/inline-block-link.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<html>
|
||||
<head>
|
||||
<style>
|
||||
p {
|
||||
display: inline-block;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
Here is some test text.
|
||||
Here is a <a href="http://example.com">test link</a>.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
|
@ -28,6 +28,7 @@ span#ua {
|
|||
<p>Your user agent is: <b><span id="ua"></span></b></p>
|
||||
<p>Some small test pages:</p>
|
||||
<ul>
|
||||
<li><a href="inline-block-link.html">link inside display: inline-block</a></li>
|
||||
<li><a href="set-interval.html">setInterval() test</a></li>
|
||||
<li><a href="html-escape-test.html">html character escape test</a></li>
|
||||
<li><a href="location.html">window.location property</a></li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue