News for hackers. Stuff that matters.
Re:Declarative Shadow DOM by onion2k on Friday October 02, 2020 @03:12AM (#24659866)
Surely, there are reasons for all this complexity beyond stylesheet compartmentalization?

That's quite a good reason. It'll be useful for embedding content in pages; if you have complete control over the page then that isn't especially helpful, but if you don't (many teams contributing to a site, accepting user defined content in to a page, enabling an admin to define page styles without breaking important elements, etc) then it's very handy.

My inner pessimist does wonder if Google are driving this because it'll somehow make it harder to block adverts, but for now it looks quite useful in for the obvious use cases.

There are no comments on this comment yet.