Layouter
Computes the styles of a tree of elements and lays it out.
Layout happens in two kinds of steps. Measuring determines the size an element wants for a given containing size, it does not change any state, its results are cached for the duration of a layout pass. Arranging sets the sizes and positions of the children of an element, using the measured sizes. Every element in the flow is sized and positioned by its parent, fixed and absolute elements size and position themselves.
Sizes are border-box sizes: they include the padding and the border, but not the margins of an element. Percentages are taken of the content size of the containing element; margins and padding are always taken of its width.
Properties
true when style sheets have media queries
the elements whose styles changed properties that lay out, since updateStyles was last called
What the media queries of style sheets in @media rules are evaluated against, null when they do not apply; set it before the styles are computed
Functions
computes the styles of element and its descendants, all of them
Lays out element and its descendants. The element is sized relative to its parent, keeping its position unless it is fixed or absolute. An element in a flex or grid container keeps the size that the container gave it, which its own style alone does not give, like a flex item that grows into the space of its parent.
the style sheets that select element, in the order of the cascade: the last wins, important declarations aside
Computes the styles of element and of the descendants whose styles can have changed: of elements whose classes, states, id or inline style changed, of their descendants, and of the children of elements whose styles changed. Elements whose computed styles changed are drawn again.