[wp-trac] [WordPress Trac] #38046: Wordpress ignores width of gfycat oEmbed

WordPress Trac noreply at wordpress.org
Mon Sep 19 06:50:22 UTC 2016


#38046: Wordpress ignores width of gfycat oEmbed
--------------------------+------------------------------
 Reporter:  archon810     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Embeds        |     Version:  4.6.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by swissspidy):

 The `width` attribute stands for the width in pixels required to display
 the HTML. It's not a value the oEmbed consumer must enforce. Since the
 provider declares a width of 100% (which is not allowed by the HTML spec)
 instead of the pixel value in the embed HTML, the output is correct in my
 eyes.

 I'd suggest filtering the oEmbed output in a plugin to adjust the HTML
 based on the `width` attribute or set a fixed width using CSS.

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


More information about the wp-trac mailing list