ampproject / ampproject/amphtml
<amp-iframe> elements must be positioned outside the first 75% of the viewport or 600px from the top (whichever is smaller):
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
### The Issue amp-iframe error
elements must be positioned outside the first 75% of the viewport or 600px from the top (whichever is smaller): … Current position 454 . Min: 600 Positioning rules don't apply for iframes that use `placeholder`.See https://github.com/ampproject/amphtml/blob/master/extensions/amp-iframe/amp-iframe.md#iframe-with-placeholder for details.
### How do we reproduce the issue?
The error in the console is like that, when you open the page, it seems normal.
But if you reload the page with the iframe, the error sometimes will occur.
You can try by pressing Ctrl+R until the page reloaded but if no error you can try reload again.
### What browsers are affected?
I have used Chrome, Mozilla, UC Browser, Microsoft EDGE. All has this bug
### Which AMP version is affected?
Powered by AMP ⚡ HTML – Version 2012301722001 http://194.103.141.38/
Contributor guide
Research direction
Start with the amp-iframe error and the iframe-with-placeholder guidance in extensions/amp-iframe/amp-iframe.md. Reproduce the intermittent console error by reloading the reported page with Ctrl+R across the listed browsers, then inspect the amp-iframe positioning behavior. Done means identifying and addressing the reload-dependent positioning error, but the issue does not name a test or implementation entry point.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100