Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Visual formatting model implementation. See https://www.w3.org/TR/CSS22/visuren.html for more information.

WebCore

  1. recursive layout
  2. layout logic lives in the renderers mixing block with inline etc.
  3. No clear separation of logic and state.

LayoutReloaded

  1. Iterative layout within a formatting context, recursive across nested formatting contexts
  2. Formatting context is responsible for computing size/positions for all the boxes that live in the context including in/out-of-flow and floating boxes
  3. Layout state is stored in dedicated FormattingState objects.
  4. Initial containing block creates the top level (initial) block formatting context
  5. Floats are resitriced to their formatting contexts.
  6. Boxes, including inline tree are generated while laying out the content. LayoutTree -> BoxTree.

Instructions:

  1. apply ./misc/LayoutReloadedWebKit.patch
  2. compile WebKit
  3. load ./test/index.html

Partially done: Block formatting context:

  • static, relative and out of flow positioning
  • margin collapsing
  • floats

Missing:

  • Inline formatting context
  • Everything else
Morty Proxy This is a proxified and sanitized view of the page, visit original site.