amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

AMP Story not opening properly in Desktop Chrome

Open ghelapratik opened this issue 8 years ago • 6 comments

Briefly describe the bug/feature request.

The AMP Stories when opened in Desktop Chrome browser have stories only 50% of the screen height. The issue is because of a tag being added just before the closing body tag. The span tag takes up 50% of the height leaving the rest 50% for Amp story. The issue can be resolved removing the height:100% !important for "amp-story[standalone]"

What browsers are affected?

Google Chrome

Which AMP version is affected?

The issue is with the AMP Stories.

half-height

ghelapratik avatar Feb 25 '18 16:02 ghelapratik

Thanks for the report @psdtomanythings. Do you have any browser extensions installed? Does this happen when using a guest profile or incognito window in Chrome? Does the <span> have any ID or classname that may indicate where it is from?

newmuis avatar Feb 25 '18 19:02 newmuis

@newmuis - There was a span tag before the closing body tag. It had a specific ID. I just did update my chrome and the span tag is gone. The new version is 64.0.3282.167 . All the CSS is loaded from /extensions/amp-story/0.1/amp-story.css

ghelapratik avatar Feb 26 '18 09:02 ghelapratik

So here is the span element <span id="sbmarwbthv5"></span>. This span tag was may be added by some extension. We are trying to find the extension.

ghelapratik avatar Feb 26 '18 14:02 ghelapratik

This doesn't seem to be a generic issue it works fine on my amp stories on Chrome (64.0.3282.167) https://amp.sportsmole.co.uk/stories/

QES avatar Feb 26 '18 16:02 QES

This seems like a duplicate of #12140; we should take measures to defend the layout of the page against browser plugins randomly injecting things. @psdtomanythings please feel free to reopen if you feel this is indeed not caused by a browser plugin.

newmuis avatar Feb 26 '18 18:02 newmuis

FWIW, this weird span is apparently from the "Better History" extension. (Credit for tracking down: https://gist.github.com/fbcotter/82d029d781b5b2fc2025cde22daf4f95#gistcomment-2380364)

natevw avatar Jul 10 '20 22:07 natevw