Root element can't be absolute positioned. Fixes #3062055.

svn path=/trunk/netsurf/; revision=10743
This commit is contained in:
Michael Drake 2010-09-08 17:22:35 +00:00
parent e0477fa668
commit b9773d34bb

View File

@ -1350,7 +1350,8 @@ void layout_find_dimensions(int available_width, int viewport_height,
enum css_height_e cbhtype;
if (css_computed_position(box->style) ==
CSS_POSITION_ABSOLUTE) {
CSS_POSITION_ABSOLUTE &&
box->parent) {
/* Box is absolutely positioned */
assert(box->float_container);
containing_block = box->float_container;