diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2008-10-12 21:35:04 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2008-10-12 21:35:04 +0000 |
commit | 1a237535f78c91e8dc6ae2af2385cf96f6e2e6ea (patch) | |
tree | f62a688cad191088ec9e66e2866908051a114ee6 /render | |
parent | b7a1b3999e2b9790bbd070b8e0cdef3abdc6f096 (diff) | |
download | netsurf-1a237535f78c91e8dc6ae2af2385cf96f6e2e6ea.tar.gz netsurf-1a237535f78c91e8dc6ae2af2385cf96f6e2e6ea.tar.bz2 |
Better commenting of percentage height stuff.
svn path=/trunk/netsurf/; revision=5551
Diffstat (limited to 'render')
-rw-r--r-- | render/layout.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/render/layout.c b/render/layout.c index faffd750b..0ce9ab995 100644 --- a/render/layout.c +++ b/render/layout.c @@ -1040,10 +1040,14 @@ void layout_find_dimensions(int available_width, containing_block->style->height. height == CSS_HEIGHT_PERCENT) && containing_block->height != AUTO)) { + /* Box is absolutely positioned or its + * containing block has a valid specified + * height. (CSS 2.1 Section 10.5) */ *height = style->height.value.percent * containing_block->height / 100; } else { - /* else treated as auto; fall though */ + /* precentage height not permissible + * treat height as auto */ *height = AUTO; } break; @@ -3244,8 +3248,8 @@ bool layout_absolute(struct box *box, struct box *containing_block, &top, &right, &bottom, &left); /* Pass containing block into layout_find_dimensions via the float - * containing block box member. This is unused for absolutly positioned - * boxes because a box can't be floated and absolutly positioned. */ + * containing block box member. This is unused for absolutely positioned + * boxes because a box can't be floated and absolutely positioned. */ box->float_container = containing_block; layout_find_dimensions(available_width, box, box->style, &width, &height, &max_width, &min_width, |