diff options
-rw-r--r-- | render/layout.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/render/layout.c b/render/layout.c index fdf3856d1..31a18cdee 100644 --- a/render/layout.c +++ b/render/layout.c @@ -1500,12 +1500,16 @@ bool layout_line(struct box *first, int *width, int *y, } for (d = first; d != b; d = d->next) { - if (d->type == BOX_INLINE || d->type == BOX_INLINE_BLOCK || - d->type == BOX_BR || d->type == BOX_TEXT || + if (d->type == BOX_INLINE || d->type == BOX_BR || + d->type == BOX_TEXT || d->type == BOX_INLINE_END) { d->x += x0; d->y = *y - d->padding[TOP]; } + if (d->type == BOX_INLINE_BLOCK) { + d->x += x0; + d->y = *y + d->border[TOP]; + } if (d->type == BOX_INLINE_BLOCK && (d->style->position == CSS_POSITION_ABSOLUTE || d->style->position == CSS_POSITION_FIXED)) |