summaryrefslogtreecommitdiff
path: root/render/box.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/box.c')
-rw-r--r--render/box.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render/box.c b/render/box.c
index e871b866b..37fc6f1d0 100644
--- a/render/box.c
+++ b/render/box.c
@@ -352,7 +352,8 @@ siblings:
bool box_contains_point(struct box *box, int x, int y)
{
- if (box->style && box->style->overflow != CSS_OVERFLOW_VISIBLE) {
+ if ((box->style && box->style->overflow != CSS_OVERFLOW_VISIBLE) ||
+ box->inline_end) {
if (box->x <= x + box->border[LEFT] &&
x < box->x + box->padding[LEFT] + box->width +
box->border[RIGHT] + box->padding[RIGHT] &&