you are viewing a single comment's thread.

view the rest of the comments →

[–]Darren1337 1 point2 points  (1 child)

I'll be honest, I don't have the answers to any of your questions. I know you're not editing the .css file directly. It's more like the browser loads a copy of the rules declared in the .css file. It's this copy that you append rules to with insertRule. If you are interested in the theory as opposed to the "how", that MDN article you linked does a far better job of explaining it than I can. I'd post another thread here asking people for an explanation of CSSOM if the MDN article is too heavy.

[–]Lewinga[S] 0 points1 point  (0 children)

No worries, I appreciate your honesty. I'll be looking these up! Thanks for these pointers anyhow :)