CSSOM
The browser's in-memory model of all the CSS rules on a page, built by parsing stylesheets, which it combines with the DOM to work out each element's style.
In more detail
CSSOM stands for CSS Object Model. Just as HTML becomes the DOM, CSS becomes the CSSOM, and JavaScript can read it through document.styleSheets. The DOM and CSSOM together produce the render tree.
Related terms
- DOM — The tree of objects a browser builds from a web page, which scripts read and change to update what is on screen.
- render tree — The tree of visible elements with their computed styles, built from the DOM and CSSOM, that the browser uses for layout and painting.
- CSS — The language that describes how web pages look: colours, fonts, spacing, layout and animation.
- computed value — The final value of a CSS property for one element after the cascade and inheritance have been resolved and relative values worked out.
Taught in
- HTML Parsing, Tokenization And The Document Object Model (DOM) — Frontend Architecture & Web Platform
- CSS Parsing, The CSSOM And The Render Tree — Frontend Architecture & Web Platform
- Critical Rendering Path: Preload, Prefetch And Scripts — Frontend Architecture & Web Platform
- Accessibility Tree, ARIA Roles, States And Live Regions — Frontend Architecture & Web Platform