-
Notifications
You must be signed in to change notification settings - Fork 382
Closed
Labels
Milestone
Description
Bug Description
When an iframe is set to be "full width" in the block editor, it is currently broken because its layout attribute defaults to 'intrinsic'.
Expected Behaviour
An iframe that is set to be "full width" in the block editor should have 'responsive' as its layout attribute.
Steps to reproduce
- In the block editor, add an embed block and copy in the URL
https://wordpress.tv/2019/10/08/the-history-of-wordpress-in-four-minutes/. - Set the alignment to "Full width".
- Publish the post and visit it on its AMP URL.
- The embedded video will not be full-width, but rather aligned to the left. Its markup shows that the it is set to
layout=intrinsic.
Screenshots
Choosing the "Full width" alignment:

Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- Iframe should look same in AMP as non-AMP
Implementation brief
QA testing instructions
- See instructions above.
Demo
- See screenshots.
Changelog entry
- Set iframe layout to responsive if the embed is aligned to full width.
Reactions are currently unavailable

