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

WordPress Trac noreply at wordpress.org
Mon Nov 4 16:28: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:  Editor          |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------

Comment (by david.binda):

 I've been looking into this, and the issue of an extra `iframe { width:
 100%; }` affects iframes which are supposed to have it's width set via
 HTML `width` attribute. Eg.:

 {{{
 <iframe width="560" height="315"
 src="https://videopress.com/embed/bd2G0c0g" frameborder="0"
 allowfullscreen></iframe>
 }}}

 In my tests, the `width="560"` gets ignored if there is a `iframe { width:
 100%; }` in the stylesheets - eg.: introduced by the block editor as in
 the case mentioned in this ticket.

 To me it feels like this change might affect installs using various
 advertisement systems ( eg: Google ads ... ), as well as sharing video
 content via iframes ( eg: YouTube, WordPress.tv ... ).

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


More information about the wp-trac mailing list