How is CSS applied by the browser, and are repaints affected by it?
How does the browser take the rules in this stylesheet and apply it to the HTML? Typically this is done in a streaming fashion. The browser reads the HTML tags as a stream, and applies what rules it can to the elements it has seen so far. (Obviously this is a simplification.) An interesting related … Read more