An Introduction and Guide to the CSS Object Model (CSSOM)

If you’ve been writing JavaScript for some time now, it’s almost certain you’ve written some scripts dealing with the Document Object Model (DOM). DOM scripting takes advantage of the fact that a web page opens up a set of APIs (or interfaces) so you can manipulate and otherwise deal with elements on a page.
But there’s another object model you might want to become more familiar with: The CSS Object Model (CSSOM). Likely you’ve already used it but didn’t necessarily …
The post An Introduction and Guide to the CSS Object Model (CSSOM) appeared first on CSS-Tricks.

Link: https://css-tricks.com/an-introduction-and-guide-to-the-css-object-model-cssom/