https://dl.acm.org/doi/pdf/10.1145/237170.237260

Related: The authors wrote a paper on their design of the layout engine.