amphtml: AMP fixed header on Chrome iOS has incorrect position when in an iFrame

Short description of the issue

When viewing Google AMP results on Chrome iOS, there is a bug where the header disappears when I click on an AMP result with a header that has position:fixed; top:0; CSS.

How do we reproduce the issue?

  1. Create an AMP page with a header with position:fixed; top:0; CSS.
  2. Get the result indexed
  3. Search for the page on Chrome in iOS
  4. Make sure the location bar is not displayed (only scroll down)
  5. Click on the search result
  6. You’ll see that the header is “calculated” to be below the google bar, but is hidden by the height of the location bar.

Example:

img_0719

Example of how it should look:

iphone-amp-correct

Public URL (works fine if you access it directly):

Search result that will cause the issue:

Here is a screen recording of where I reproduce the bug:

I’m not sure if this is a bug with the AMP recalc JS or Chrome on iOS, so I created a bug report on crbug.com as well:

What browsers are affected?

Chrome 55 on iOS.

Which AMP version is affected?

1485231782273

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 30 (22 by maintainers)

Most upvoted comments

someone fix this?

I have the same problem with amp fixed header using chrome on ios but when using amp-lightbox

the amp fixed header hide the content

image