# Packages
Package boxes defines the basic elements of the formatting structure, as a tree of boxes.
This package implements the high level parts of the document generation, but is still backend independant.
Transform a "before layout" box tree into an "after layout" tree, by breaking boxes across lines and pages; and determining the position and dimension of each box fragment.
This module takes care of steps 3 and 4 of “CSS 2.1 processing model”: Retrieve stylesheets associated with a document and annotate every Element with a value for every CSS property.