-
Notifications
You must be signed in to change notification settings - Fork 4k
Base/dummmy implementation of amp-story extension #11330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
css/amp.css
Outdated
|
|
||
| amp-story-page { | ||
| background-color: #757575; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: new line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| * amp-story | ||
| */ | ||
| amp-story, amp-story-page { | ||
| display: block; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Static positioning OK? Not relative or absolute? Or is this up to the actual extension amp-story.css?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Static positioning is okay here. Since the height is 100vh and the pages will lay out vertically, we'll start preloading resources for the first few viewports (based on whatever the runtime does by default). When amp-story.css is loaded, it will override this to style the story appropriately.
| } | ||
|
|
||
| buildCallback() { | ||
| this.isExperimentOn_ = isExperimentOn(this.win, TAG); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We just usually do user().assert(isExperimentOn(...), 'enable X experiment'). No need for private vars and such.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| { | ||
| id: 'amp-story', | ||
| name: 'Visual storytelling in AMP', | ||
| spec: 'https://github.com/ampproject/amphtml/issues/11329', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create cleanup bug and include here as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
This adds the basic structure of a new
amp-storyextension, per the intent to implement in #11329.