Traverses the document optimizing the styles associated with the elements converting them into a list.
The styles for an element are optimized after the styles for the children as the children need access to the parent styles in order to determine whether they are inherited or not.
Before processing the children an element's styles are preprocessed in order to fix up a couple of issues with the input that affects inheritance.
The device specific styles are applied to the element so that they can be used to determine which properties need to be written out.
|
|
|
|