The styling process - algorithm


Traverse document depth-first, left to right,
for each element: