We realized that the amp-story-player component does not currently allow the intrinsic layout:
However, the component itself totally supports it and works fine with it:
I could not find an explanation for this in #29327, so it might simply be an oversight.
If it's intended behavior though it would be good to know why, so that we could explore workarounds.
Try using amp-story-player with intrinsic layout and see that it fails AMP validation.
Example:
<amp-story-player width="360" height="600" layout="intrinsic">
<a href="https://preview.amp.dev/documentation/examples/introduction/stories_in_amp">
Hello World
</a>
</amp-story-player>
All browsers
Current version (2011200012001 at the time of writing)
/cc @Enriqe
Yep, I think this was an oversight. Will send out a PR to fix this.
/cc @ampproject/wg-stories
Related: The intrinsic layout was also originally omitted for amp-video, but it has since been added: https://github.com/ampproject/amphtml/pull/28349.