Re:The Benefits of Iframe Based Development
by ramesh31 on Tuesday November 02, 2021 @12:19AM
(#29077033)
Is there any reason you're not just using shadow DOM?
[ Parent
| on HN ]
Re:The Benefits of Iframe Based Development
by danielvaughn on Tuesday November 02, 2021 @07:26AM
(#29079648)
Afaik that doesn’t solve the problem of global CSS. Whatever framework I use to build the application itself (right now I’m using Tailwind), I don’t want to risk it polluting the canvas itself.
Re:The Benefits of Iframe Based Development
by danielvaughn on Tuesday November 02, 2021 @09:33AM
(#29080942)
edit: I'd never spent much time looking at shadow dom, but it does appear that you can encapsulate styles with a shadow root. Had no idea - that's really interesting, thanks!