The CSSOM is the browser’s object model for CSS rules. When a selector matches a DOM element, its declarations participate in style calculation.
The demo connects a selector to a matching element and changes its color. Specificity and inheritance also affect the result, so reading a CSS file alone does not settle the final style.
When to use
Use it with the DOM when tracing selector conflicts or style calculation cost.