summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--render/layout.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/render/layout.c b/render/layout.c
index 6c3f0897c..96a9b6168 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -684,6 +684,17 @@ void layout_minmax_block(struct box *block,
assert(0);
}
assert(child->max_width != UNKNOWN_MAX_WIDTH);
+
+ if (child->style &&
+ (child->style->position ==
+ CSS_POSITION_ABSOLUTE ||
+ child->style->position ==
+ CSS_POSITION_FIXED)) {
+ /* This child is positioned out of normal flow,
+ * so it will have no affect on width */
+ continue;
+ }
+
if (min < child->min_width)
min = child->min_width;
if (max < child->max_width)