diff options
Diffstat (limited to 'render/layout.c')
-rw-r--r-- | render/layout.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/render/layout.c b/render/layout.c index afb841c99..33f46b37c 100644 --- a/render/layout.c +++ b/render/layout.c @@ -1835,8 +1835,10 @@ bool layout_line(struct box *first, int *width, int *y, d->margin[BOTTOM]; if (d->style && (d->style->clear == CSS_CLEAR_NONE || - (d->style->clear != CSS_CLEAR_NONE && - left == 0 && right == 0)) && + (d->style->clear == CSS_CLEAR_LEFT && + left == 0) || + (d->style->clear == CSS_CLEAR_RIGHT && + right == 0)) && (b->width <= (x1 - x0) - x || (left == 0 && right == 0 && x == 0)) && cy >= cont->clear_level) { |