Skip to content

Responsive videos: Removing support for Gutenberg themes causes issues in older posts #11097

Closed

Description

@laurelfulford

With #10678, themes that support Gutenberg's responsive embeds will no longer use Jetpack's responsive video behaviour. This makes sense -- I can see how having two competing responsive embed approaches would make a bit of a mess! -- but it causes some issues in this in-between time, when sites with existing content switch to a Gutenberg supporting theme, or, like on WP.com, existing themes get Gutenberg support added: videos in older posts stop behaving responsively.

Steps to reproduce the issue

  1. Start with a theme that supports both responsive-embeds and jetpack-responsive-videos (every theme in https://github.com/Automattic/themes should fit this criteria)
  2. Create a post, and add a YouTube video and/or Vimeo video to a Classic Block.
  3. Publish post.
  4. View on mobile.

What I expected

I expected the videos to maintain their aspect ratio.

What happened instead

YouTube videos get cut off on the sides, and Vimeo videos get scaled down to fill the available width, but there's extra vertical space around them.

Originally reported here: Automattic/themes#478

I'm going to keep investigating this from the theme side for the ones on WP.com, but I wanted to bring it up here, too, in case there's a way to keep the two responsive behaviours from clashing, but still apply Jetpack's solution to videos embedded in the classic editor or block.

Screenshots
Youtube video added to a Classic block, using the Lodestar theme:

Vimeo video added to a Classic block, using the Lodestar theme:

Activity

  1. added this to the 7.0 milestone on Jan 8, 2019
  2. added
    Bug
    [Focus] Blocks
    on Jan 8, 2019
  3. self-assigned this
    on Jan 21, 2019
  4. added a commit that references this issue on Jan 21, 2019
    045fc8a
  5. added a commit that references this issue on Jan 29, 2019
    03d45f3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Bug[Feature] Theme Tools[Focus] Blocks

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions