News for hackers. Stuff that matters.
Re:CSS in GitHub Readmes by t0astbread on Wednesday December 09, 2020 @03:50AM (#25356636)
For most badges it would probably work to hard-code a size. I think the badge's document could also adjust to the size of the frame (via viewport dimensions) with JavaScript. I'm pretty sure though that GitHub couldn't resize a third-party iframe to its content even with JS because of cross-origin restrictions preventing it from accessing the document.

There are no comments on this comment yet.