Skip to content
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 Stories should allow and make simple letterbox layout #27049

Closed
dvoytenko opened this issue Mar 2, 2020 · 0 comments · Fixed by #27027
Closed

AMP Stories should allow and make simple letterbox layout #27049

dvoytenko opened this issue Mar 2, 2020 · 0 comments · Fixed by #27027

Comments

@dvoytenko
Copy link
Contributor

Describe the new feature or change to an existing feature you'd like to see

Stories should allow letterbox layout with proportional position/layout and font.

The proposed solution is to add this initially to the amp-story-grid-layout as:

<amp-story-grid-layout aspect-ratio="9:16">
</amp-story-grid-layout>

When specified, the size of the layer is set to be maximum allowed but preserving the specified aspect ratio. And the root font size is set a reference value that allows the content font to be assigned in proportionally to the layer's height.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants