News for hackers. Stuff that matters.
Re:CSS in GitHub Readmes by TooCreative on Tuesday December 08, 2020 @03:34PM (#25350979)
I doubt iframes can stretch to the content even with JS.

Maybe for special cases, where the content is from the same domain or is actively messaging the size outwards so you can code some interplay between the outer page and the iframe. But neither side can do it alone.

Re:CSS in GitHub Readmes by bacondude3 on Tuesday December 08, 2020 @03:44PM (#25351100)
There are projects such as iFrame Resizer [0] for this, and you're correct that it does require cooperation from the iframe source.

[0]: https://davidjbradshaw.github.io/iframe-resizer/

Re:CSS in GitHub Readmes by matt_kantor on Tuesday December 08, 2020 @03:42PM (#25351071)
I'm on mobile and can't double check this right now, but couldn't you resize the frame until it no longer scrolls?