Skip to content

Commit

Permalink
Fix amp-video layoutCallback on first story page. (#26744)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmajoulet authored Feb 11, 2020
1 parent 4e4756f commit 28587a0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions extensions/amp-story/1.0/amp-story.css
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,14 @@ amp-story-grid-layer {
left: 0 !important;
}

/**
* Prevents amp-video to layout until its element has been swapped by the media
* pool. See #26718 for context.
*/
amp-story-page[active]:not(.i-amphtml-layout) amp-video.i-amphtml-poolbound {
display: none !important;
}

amp-story-grid-layer > * {
pointer-events: auto !important;
}
Expand Down

0 comments on commit 28587a0

Please sign in to comment.