Laying Out Pages

Pavel Panchekha, Chris Harrelson · 2024

Abstract So far, layout has been a linear process that handles open tags and close tags independently. But web pages are trees, and look like them: borders and backgrounds visually nest inside one another. To support that, this chapter switches to tree-based layout, where the tree of elements is transformed into a tree of layout objects before drawing. In the process, we’ll make web pages more colorful with backgrounds.

Read the paper · More papers on PaperTik