-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[amp-story-player] Replace poster img CSS variable with img el #30753
Conversation
Hey @gmajoulet, @newmuis! These files were changed:
Hey @alanorozco! These files were changed:
Hey @ampproject/wg-caching! These files were changed:
|
extensions/amp-story-player/validator-amp-story-player.protoascii
Outdated
Show resolved
Hide resolved
PTAL |
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 should probably hold off until issues in #30442 reach a decision.
extensions/amp-story-player/validator-amp-story-player.protoascii
Outdated
Show resolved
Hide resolved
extensions/amp-story-player/validator-amp-story-player.protoascii
Outdated
Show resolved
Hide resolved
extensions/amp-story-player/validator-amp-story-player.protoascii
Outdated
Show resolved
Hide resolved
extensions/amp-story-player/validator-amp-story-player.protoascii
Outdated
Show resolved
Hide resolved
extensions/amp-story-player/validator-amp-story-player.protoascii
Outdated
Show resolved
Hide resolved
extensions/amp-story-player/validator-amp-story-player.protoascii
Outdated
Show resolved
Hide resolved
extensions/amp-story-player/validator-amp-story-player.protoascii
Outdated
Show resolved
Hide resolved
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 should probably hold off until issues in #30442 reach a decision.
I think @kristoferbaxter agrees that we could work on making |
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.
Thanks for the helpful comments, @Gregable!
Could we get some guidance on how to move forward here? The change would only be valid for <img>
tags under <amp-story-player>
. Which we think can come separately from the deprecation of <amp-img>
#30512 (comment).
We'd like to keep both AMP and non-AMP versions of the player with the same HTML API (which would not be possible if we tell publishers to use amp-img
on the AMP version).
Since we're about to communicate updates about the player to a wider audience, we would like them to use this new API (using <img>
) instead of having them change it later.
extensions/amp-story-player/validator-amp-story-player.protoascii
Outdated
Show resolved
Hide resolved
extensions/amp-story-player/validator-amp-story-player.protoascii
Outdated
Show resolved
Hide resolved
extensions/amp-story-player/validator-amp-story-player.protoascii
Outdated
Show resolved
Hide resolved
extensions/amp-story-player/validator-amp-story-player.protoascii
Outdated
Show resolved
Hide resolved
More context on why we want to move forward with this PR:
Please lmk if you think this is reasonable. |
How do you feel about blocking on @cramforce 's suggested changes to the AMP CSS to enforce aspect-ratio before rolling this out? |
I'm not sure I understand the proposal. It sounds like the idea is to override the image values with the If we are just going to override the values if the browsers support it, it sounds like an incremental improvement and we don't really have to wait on that change? |
My understanding is that it could break documents that relied on the non-overridden style. While it wouldn't invalidate them, a document could go from rendering correctly to rendering incorrectly after the aspect-ratio change. This is why I recommend considering blocking until that change, so that we avoid surprises. |
|
Synced offline with @honeybadgerdontcare and we've decided the general AMP scenario for validating I've updated the PR to address all comments, PTAL :) |
extensions/amp-story-player/0.1/test/validator-amp-story-player-error.html
Outdated
Show resolved
Hide resolved
extensions/amp-story-player/validator-amp-story-player.protoascii
Outdated
Show resolved
Hide resolved
extensions/amp-story-player/validator-amp-story-player.protoascii
Outdated
Show resolved
Hide resolved
extensions/amp-story-player/validator-amp-story-player.protoascii
Outdated
Show resolved
Hide resolved
extensions/amp-story-player/validator-amp-story-player.protoascii
Outdated
Show resolved
Hide resolved
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.
Thanks for the review @honeybadgerdontcare , this is ready for review again.
/to @Gregable for blocking approval |
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.
approved to resolve my old minor nit comments. I'm deferring to @honeybadgerdontcare on the larger questions.
Context #30512
Replaces usages of the CSS variable with an
<img loading="lazy" amp-story-player-poster-img>
tag.In preparation for dev preview of the player, we should clean up all the samples / docs before wide spread comms.
I'm holding off on updating the docs / samples of the AMP version until we address #30512 (comment)