How does CSS work?

406 viewsOtherTechnology

I’m a programmer by trade. I use CSS just about every day, but I’d be lying if I said I understood how it works under the hood. What exactly does CSS do behind the scenes when I pass the parameters? How does browser support play a role in all of it?

In: Technology

4 Answers

Anonymous 0 Comments

Not sure exactly what you mean by how it works?

All web technologies essentially rely on the web browser for them to work. The web browser is like a VM running all your code. So the web browser needs to have a CSS parser that understands all the commands and can render them correctly according to the CSS spec.

The spec is constantly evolving (a “living spec”) and includes many drafts and proposals, plus individual web browser vendors like to innovate ahead of the spec, resulting in varied support for certain features among browsers, as well as vendor-specific features.

You are viewing 1 out of 4 answers, click here to view all answers.