Absolute positioning

John-Mark Bell jmb202 at ecs.soton.ac.uk
Wed Jun 21 09:38:20 BST 2006


On Wed, 21 Jun 2006, James Bursa wrote:

> I've started working on absolute positioning.
>
> My plan is to add  struct box *absolute_children  to struct box. Absolute
> boxes will be a linked list attached to the absolute_children pointer of
> their containing block (see CSS 2.1 10.1), and not appear in the children
> list at all.

This sounds reasonable to me. I presume the likes of fixed position boxes 
will attach to the root node of the box tree?

> The other possibility would be to make a new box type BOX_ABSOLUTE,
> similar to the way floats are implemented. I think that would make
> layout_block_context() much more complicated though.

That's getting complicated enough, I think ;) Equally, I can't think of 
any benefit for adding a new box type.


John.




More information about the netsurf-dev mailing list