ampproject / ampproject/amphtml

amp-story auto-advance-after is ignored if elements have media query values

Open
#29,817 6 comments 0 reactions 1 assignee Claimed by @newmuis View on GitHub
Stale WG: stories
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

## What's the issue?

When we use a media query to hide an amp-img on a story page, auto-advance-after is ignored.

## How do we reproduce the issue?

If this is a bug please provide a public URL and ideally a reduced test case (e.g. on jsbin.com, codepen.io, or glitch.com) that exhibits only your issue and nothing else. Then provide step-by-step instructions for reproducing the issue:

1. go to https://jumprope.com/g/amp/make-chocolate-peanut-butter-bars/30SSiKX4 on a desktop browser
2. navigate to the 2nd page of the story, in src: ``
3. see that autoadvance is broken

Here's an example codepen of the issue https://codepen.io/travisj/pen/PoNZQqO

### Tips on Rendering Bugs

## What browsers are affected?

all

## Which AMP version is affected?

this does not seem to be a new issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.