summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-01-22 17:52:22 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2009-01-22 17:52:22 +0000
commitbeff85fa73e48122b5e0874e067129cebc5022db (patch)
tree343898b828be1425a3b06b08a6bf2b8e3cfde264 /render
parent3594651a6bdd43626e3b6490adc19327697ff411 (diff)
downloadnetsurf-beff85fa73e48122b5e0874e067129cebc5022db.tar.gz
netsurf-beff85fa73e48122b5e0874e067129cebc5022db.tar.bz2
Ignore clear:left; when the only floats are on the right and vice versa.
svn path=/trunk/netsurf/; revision=6176
Diffstat (limited to 'render')
-rw-r--r--render/layout.c6
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) {