News for hackers. Stuff that matters.
Re:The Benefits of Iframe Based Development by danielvaughn on Monday November 01, 2021 @11:33PM (#29076650)
I’m using them in a css-based design tool I’m working on. The “canvas” is inside of an iframe so that I can completely control the styling irrespective of the application itself.

There are definitely a few scenarios where they are useful.

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?
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!