In #10437 we discovered an issue with embedding Instagram posts.
The issue was that when we float an embed, we set a minimum and a maximum width on the floated embed, because the embed itself does not necessarily have a specific intrinsic width we can work with. In the case of Instagram, the max-width we set (290px) was smaller than the minimum width supported by Instagram embeds (326px).
Following this, we should do an audit on every embed block, floated or otherwise, and verify that they are not cropped at any time.
@jasmussen is there any more work left? I see one PR merged. Can we move to 4.2?
Yes okay to move. But would be good to do a thorough test sooner rather than later ๐
Call to action: audit every embed block, floated or otherwise, and verify that they are not cropped at any time.
The list of core embeds above was pulled from https://github.com/WordPress/gutenberg/blob/master/packages/block-library/src/embed/core-embeds.js
I tested a WordPress.tv embed of https://wordpress.tv/2018/11/08/matt-mullenweg-qa-at-wordcamp-portland-2018/ using WordPress 4.9.8 and Gutenberg 4.4 cdeb40986 with Firefox 63.0.1 on macOS 10.13.6. All alignments look good (including wide and full) and the embed doesn't get cropped unexpectedly.
Aside: I noticed that the sizes of right-aligned WordPress.tv embeds don't match in the editor versus the front-end for Twenty Nineteen (but work properly for Twenty Seventeen) so I reported that separately at https://github.com/WordPress/twentynineteen/issues/610
Thanks for the call to action, Sheri! I've done some testing too:
https://www.scribd.com/article/392711110/The-Democrats-New-Power-ToolsI tested the ones below, and I don't see any unexpected cropping when the embeds are set to float/aligned to center.
I also noticed that the Control + Option + Z command to remove the embed blocks don't work on most. I wasn't able to get it working on Reddit, Cloudup and Imgur so far.
Works fine on Facebook. I can search for the ones where it doesn't work and file a ticket, as required.
Tested Meetup.com embeds using WordPress 4.9.8 and Gutenberg 4.4 7e814e393 with Firefox 63.0.1 on macOS 10.13.6 and found another small Twenty Nineteen nitpick ( https://github.com/WordPress/twentynineteen/issues/624 ) but otherwise it looks good.
Did some testing :D
โ
Twitter
โ
YouTube
โ
Facebook
โ
Instagram
โ
WordPress
โ
SoundCloud
โ
Spotify
โ
Flickr
โ
Vimeo
๐พ Animoto:
There's an extra space below the video http://cld.wthms.co/VdxgIP
URL: https://animoto.com/play/FQ12uazXH10WDez7vsfh2g
โ
Cloudup
๐พ CollegeHumor:
Got an empty space.
http://cld.wthms.co/RqmGwc
URL: http://www.collegehumor.com/video/40004082/the-girl-with-a-birthday-month
โ
Dailymotion
๐พ Funny Or Die:
Got this message: "Sorry, we could not embed that content."
http://cld.wthms.co/mAOqGR
URL: https://www.funnyordie.com/2018/11/16/18097374/depression-olympics-sketch-parody-al-madrigal
๐พ Hulu:
Got an error since I'm outside US: http://cld.wthms.co/qsszHP
And an error when I tried with VPN: http://cld.wthms.co/JGZlQi
URL: https://www.hulu.com/watch/771496
โ
Imgur
โ
Issuu
๐พ Kickstarter
Empty space on editor: http://cld.wthms.co/05Me72
Looks odd: http://cld.wthms.co/rr2jCJ
URL: https://www.kickstarter.com/projects/antsylabs/pixl-a-magnetic-building-system
โ
Meetup.com
โ
Mixcloud
๐พ Photobucket
Didn't work. Tried two URLS. They gave me this error: "Sorry, we could not embed that content."
URL 1: http://i1044.photobucket.com/albums/b444/zzztttzzz/20181117_084341_zpswlblzpk2.jpg
URL 2: http://photobucket.com/gallery/user/zzztttzzz/media/bWVkaWFJZDoxOTY3ODY4MjE=/?ref=
โ
Polldaddy (Crowdsignal)
โ
Reddit
๐พ ReverbNation
Big space below embed block: http://cld.wthms.co/y7bdkf
URL: https://www.reverbnation.com/sammybrue
๐พ Screencast
Appears a black space when aligning the image:
Centered: http://cld.wthms.co/bV381m
Aligned: http://cld.wthms.co/ldsG38
URL: http://www.screencast.com/t/9QpXpRrzf
โ
Scribd
โ
Slideshare
๐พ SmugMug
Works but doesn't show a preview: http://cld.wthms.co/PXm1NZ
I'm guessing it is because it uses Flash.
URL: https://foaloce.smugmug.com/Travels/Italy/Toscana-april-2012/
๐พ Speaker Deck
It looks cropped: http://cld.wthms.co/HBfKQg
URL: https://speakerdeck.com/maltzj/code-reviewing-like-a-champion
โ
TED
โ
Tumblr
โ
VideoPress
โ
WordPress.tv
WordPress 4.9.8 running Twenty Seventeen theme
funnyordie no longer supports oembed, we should remove the block and remove the provider from core WP.
SmugMug Works but doesn't show a preview: http://cld.wthms.co/PXm1NZ I'm guessing it is because it uses Flash.
Confirmed, Failed to load 'https://cdn.smugmug.com/ria/ShizamSlides-2015060701.swf' as a plugin, because the frame into which the plugin is loading is sandboxed. in the console, so this might have to go on the list of domains we can't show previews for.
Photobucket Didn't work. Tried two URLS. They gave me this error: "Sorry, we could not embed that content."
Photobucket no longer supports oembed. Another one we should remove from the blocks and from core code.
๐พ CollegeHumor:
Got an empty space.
http://cld.wthms.co/RqmGwc
Confirmed - same happened to me when embedding http://www.collegehumor.com/video/40004155/sorry-im-a-slow-eater
However, using the "share" link from CollegeHumor generates a YouTube link, and embedding that worked fine.
Sidenote: _sometimes_ when a blank box is embedded as with CollegeHumor, it's difficult to work with in the editor because the edges can't be seen: https://cloudup.com/cdC9adRwwVu
That means clicking around where you _think_ it is until you get the block selected.
Unfortunately I wasn't able to reproduce this behavior in another post, but here's what I was seeing: https://cloudup.com/cuj2l7eeBmb
WordPress 4.9.8 running Twenty Seventeen theme.
Thank you all so much for testing here.
This audit has revealed a number of issues, some that were present even in 4.9.
The initial issue was related to how the embeds work with regards to floats, though, and it seems this aspect has worked well. For that reason I'm tempted to close this ticket in favor of the individual issues that have been surfaced as a result of this audit.
But for now atleast, I'm moving it out of the 5.0 milestone as the audit has technically been completed.
This served its purpose I think. Let's close and open individual issues.
Most helpful comment
I tested the ones below, and I don't see any unexpected cropping when the embeds are set to float/aligned to center.
I also noticed that the
Control+Option+Zcommand to remove the embed blocks don't work on most. I wasn't able to get it working on Reddit, Cloudup and Imgur so far.Works fine on Facebook. I can search for the ones where it doesn't work and file a ticket, as required.