WordPress.org

Make WordPress Core

Opened 24 hours ago

Last modified 24 hours ago

#48482 new defect (bug)

Block library applying width of 100% to iframe

Reported by: jeremeylduvall Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: trunk
Component: Editor Keywords:
Focuses: Cc:
PR Number:

Description

In 5.3, there's some styling at wp-includes/css/dist/block-library/style.css that sets the width for iframe elements to 100%. You can see it here:

https://github.com/WordPress/WordPress/blob/5.3-branch/wp-includes/css/dist/block-library/style.css#L1536

It looks like this may result from this commit to Gutenberg:

https://github.com/WordPress/gutenberg/commit/5430dced1e3594ca28f5a9c829aa9baac8905e27#diff-fded095b4f7622cd5e81d8193bf2f4b4R162

Should this be set to max-width? The width: 100% setting can cause issues with existing iframes (ad units, for example).

Change History (3)

#1 @jeremeylduvall
24 hours ago

cc @joen for input as I believe you authored the original Gutenberg commit referred to above.

#3 @SergeyBiryukov
24 hours ago

  • Component changed from General to Editor
Note: See TracTickets for help on using tickets.