Skip to content

Set layout to responsive if the iframe is aligned to full width#3507

Merged
westonruter merged 2 commits intodevelopfrom
fix/responsive-layout-on-full-width-iframe
Oct 16, 2019
Merged

Set layout to responsive if the iframe is aligned to full width#3507
westonruter merged 2 commits intodevelopfrom
fix/responsive-layout-on-full-width-iframe

Conversation

@schlessera
Copy link
Copy Markdown
Collaborator

Summary

When an iframe is set to be "full width" in the block editor, it is currently broken because its layout attribute defaults to 'intrinsic'.

This PR changes this behavior so that such an iframe is set to layout=responsive instead.

Fixes #3506

Screenshots

Comparison after the change:
Image 2019-10-15 at 2 10 27 PM

Markup after the change:
Image 2019-10-15 at 2 09 16 PM

Checklist

  • My pull request is addressing an open issue (please create one otherwise).
  • My code is tested and passes existing tests.
  • My code follows the Engineering Guidelines (updates are often made to the guidelines, check it out periodically).

@schlessera schlessera added Bug Something isn't working Sanitizers Embeds labels Oct 15, 2019
@googlebot googlebot added the cla: yes Signed the Google CLA label Oct 15, 2019
@westonruter westonruter added this to the v1.3.1 milestone Oct 16, 2019
@westonruter westonruter merged commit e894095 into develop Oct 16, 2019
@westonruter westonruter deleted the fix/responsive-layout-on-full-width-iframe branch October 16, 2019 00:31
@swissspidy swissspidy modified the milestones: v1.3.1, v1.4 Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working cla: yes Signed the Google CLA Embeds Sanitizers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Full width iframes have layout=intrinsic by default

4 participants