mdn / yari

The platform code behind MDN Web Docs
Mozilla Public License 2.0
1.16k stars 486 forks source link

Can we make macro iframes auto-size? #4240

Open hamishwillee opened 2 years ago

hamishwillee commented 2 years ago

Just fixed a couple of bugs where there was huge whitespace due to large height specified in EmbedGHLiveSample: https://github.com/mdn/content/pull/7016

IMO the iframe should respect a specified height, but it would be much better if the iframe auto-sized to full width and max of content unless they are specified.

caugner commented 1 year ago

Related (for EmbedInteractiveExample): https://github.com/mdn/yari/pull/7679

mirunacurtean commented 1 month ago

Updating with a still relevant example: https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Handling_different_text_directions image