Gecko/XUL Box Model

From MozillaWiki
Jump to: navigation, search

An important aspect of developing the capabilities of the web is implementing a CSS flexible box model much like the XUL box model. Now that the reflow branch has landed, it should be possible to implement a box model that can be used reliably from HTML.

Hixie and Hyatt worked on an original spec, which was expanded and revised by Neil Deakin here.

Notes from dbaron

In order to be implementable, this specification needs significant additions, including:

  • large number of testcases
  • need to think about vertical layout and how the same kind of algorithms can be used for horizontally scrolled columns and vertical text.

Testcases should probably be in the form of reftest pairs... in order for this to work, we need to solve pixel-rounding errors that make the current tests unreliable.

Notes from bsmedberg

Need better description of how box layout will interact with paged (printed) media.

Notes from brendan

Possible integration with other (similar) technologies. Hand-wavy stuff here ;-)