You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Embed blocks no longer appear when content position is set on cover block #28640
CSS StylingRelated to editor and front end styles, CSS-specific issues.[Block] CoverAffects the Cover Block - used to display content laid over a background image[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended[Type] RegressionRelated to a regression in the latest release
When an embed block is inserted inside a cover block, the embed block does not appear when a non-default content position is selected for the cover block.
Step-by-step reproduction instructions
Add a cover block
Add an image background
Add an embed block inside the cover block (I tested with both YouTube and SoundCloud)
Set the content position on the cover block to something besides the default center position, like "top center" or "bottom center"
Save and view the post on the frontend.
Expected behaviour
The embed to appear inside the block
Actual behaviour
When you view the post/page, the embed does not appear
Thanks for the report. I've just confirmed this is an issue with Gutenberg 9.8. You can see an example here from the frontend. Notice that the iframe containing the video is present in the HTML, but has 0px x 0px size:
By quickly tweaking some rules in the browser we can give the iframe some size and it appears (just a demo, this is not a fix):
I suspect this is a regression introduced by #25171. It looks like the new markup introduced there is not compatible with responsively sized embeds.
Just noting that #28653 has merged and appears to have fixed this - I know @jasmussen has some questions in that PR (Is it the right default size etc) so I will leave it up to him to close this or not, but it is working for me in the latest master. At least wanted to get this linked to that PR
Yep, this one is can definitely be closed, as the problem has been addressed.
There's a conversation to be had from the PR you link, on whether the arbitrary dimensions applied to prevent the embed from collapsing can be improved. But at least now it's functional to the point that it's clear what's going on when you use the embed with the matrix alignment tool and you see the result. If that result is not good, you can un-align.
CSS StylingRelated to editor and front end styles, CSS-specific issues.[Block] CoverAffects the Cover Block - used to display content laid over a background image[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended[Type] RegressionRelated to a regression in the latest release
Activity
sirreal commentedon Feb 2, 2021
Thanks for the report. I've just confirmed this is an issue with Gutenberg 9.8. You can see an example here from the frontend. Notice that the
iframecontaining the video is present in the HTML, but has0px x 0pxsize:By quickly tweaking some rules in the browser we can give the iframe some size and it appears (just a demo, this is not a fix):
I suspect this is a regression introduced by #25171. It looks like the new markup introduced there is not compatible with responsively sized embeds.
FYI @ajlende @mkaz
sirreal commentedon Feb 2, 2021
This is a problem with the latest Gutenberg build from the main branch as well.
brentswisher commentedon Feb 3, 2021
Just noting that #28653 has merged and appears to have fixed this - I know @jasmussen has some questions in that PR (Is it the right default size etc) so I will leave it up to him to close this or not, but it is working for me in the latest master. At least wanted to get this linked to that PR
jasmussen commentedon Feb 4, 2021
Yep, this one is can definitely be closed, as the problem has been addressed.
There's a conversation to be had from the PR you link, on whether the arbitrary dimensions applied to prevent the embed from collapsing can be improved. But at least now it's functional to the point that it's clear what's going on when you use the embed with the matrix alignment tool and you see the result. If that result is not good, you can un-align.
Thanks everyone!