Comments (6)
@dvoytenko
On Sep 10, 2015 9:12 AM, "teleservizi" [email protected] wrote:
Git pulled on 10 sept 2015
By adding an the page turns blank. I'm getting the following error in
Chrome's console
Uncaught Error: Layout not supported for: container
ElementProto.firstAttachedCallback_ @ viewport.js:45
ElementProto.attachedCallback @ viewport.js:22
Regards
Enrico Canardi—
Reply to this email directly or view it on GitHub
#56.
from amphtml.
So far we've used amp-pixel always with width=1/height=1. I guess that's not super apparent? Should we just hardcode the dimensions when not specified for amp-pixel?
from amphtml.
Found the problem, the < amp-pixel > tag has to be closed with </ amp-pixel > otherwise it will wrap every following tag inside the amp-pixel and of course setting width and height solves the jscript error
from amphtml.
Please add to the amp-html-components.md file the mandatoriness of the width and height attributes
from amphtml.
@dvoytenko Yeah, in this case we definitely should. They are not visible anyway.
@teleservizi We do document this in the amp-html-format.md but I agree it should be relaxed here.
from amphtml.
amp-pixel is now automatically configured and doesn't require width/height/layout attributes.
from amphtml.
Related Issues (20)
- amp-story and amp-iframe HOT 4
- amp-story-social-share: share to Instagram story HOT 2
- AMP audio doesn't work in 1.0 version HOT 4
- Design Review 2024-01-17 16:30 UTC (Africa/Europe/western Asia)
- Add a Security Policy
- Design Review 2024-01-24 21:00 UTC (Americas)
- Usage of nofollow links in AMP HOT 1
- 🐛 Google Analytics 4 Related Bug: Google Analytics did not send session_start event
- 🐛 Google Analytics 4 Related Bug: Session Attributed as Unassigned for GA4
- Design Review 2024-01-31 16:30 UTC (Africa/Europe/western Asia)
- AMP Chronic Problem HOT 1
- Enable CONSENT_STATUS macro within amp-access component HOT 1
- Workflow "Release tagger" failed (run_id: 7504983409)
- Allow to propagate more props to amp-iframe from amp-consent HOT 3
- AMP validator VS AMP Extension HOT 4
- Design Review 2024-02-07 21:00 UTC (Americas)
- Doublick extension creates cookie despite no consent HOT 4
- amp-sub
- Design Review 2024-02-14 16:30 UTC (Africa/Europe/western Asia) HOT 3
- Big Bug Alert for SERP HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amphtml.