[wp-trac] [WordPress Trac] #48482: Block library applying width of 100% to iframe

WordPress Trac noreply at wordpress.org
Fri Nov 1 18:00:35 UTC 2019


#48482: Block library applying width of 100% to iframe
----------------------------+-----------------------------
 Reporter:  jeremeylduvall  |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 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).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48482>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list