From b6c8e435cd206b0acac3368098254decfbdb5f74 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sat, 4 Nov 2006 19:17:11 +0000 Subject: Implement absolute positioned inlines. svn path=/trunk/netsurf/; revision=3026 --- Docs/02-layout | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Docs') diff --git a/Docs/02-layout b/Docs/02-layout index ddc7cfd06..36f856fc0 100644 --- a/Docs/02-layout +++ b/Docs/02-layout @@ -29,3 +29,19 @@ to a new width. Coordinates in the box tree are relative to the position of the parent node. The box tree can then be rendered using each node's coordinates. + +Absolute positioning +-------------------- +Absolutely positioned boxes are constructed in the box tree in the same place as +if they were not absolutely positioned. Inline boxes are created as +INLINE_BLOCK, tables as TABLE, and other boxes as BLOCK (see +box_solve_display()). + +During layout, absolutely positioned boxes in block context (BLOCK or TABLE) are +given a position in layout_block_context(), but treated as having no height. In +inline context (INLINE_BLOCK), they are given a position in layout_line(), but +treated as having no width or height. This is done to determine the static +position. + +An additional pass after main layout positions and layouts all absolutely +positioned boxes (see layout_position_absolute()). -- cgit v1.2.3