So i understand the browser parses, tokenizes and builds the DOM and CSSOM trees. The DOM contains the parent-children relationships between HTML and text elements. The CSS tree contains style rules. In the image below im not even sure if its an accurate representation since the CSSOM there also contains information on the HTML elements. If the CSSOM contains a style rule tree(not sure how this is possible without knowledge of the HTML structure), does it contain classes and id's? (I have read confliction information between chatGPT and an article i read linked below) If it does contain classes and id's, is at some point the classes and id's resolved to the correct HTML element during the building of the render Tree?
Conflicting information is the absolute worst and biggest waste of time to humanity. Hopefully someone with experience on browsers can shed some light. THanks