ampproject / amphtml

The AMP web component framework.
https://amp.dev
Apache License 2.0
14.89k stars 3.89k forks source link

amp-timeago causes layout shift #27229

Open kevinkimball opened 4 years ago

kevinkimball commented 4 years ago

What's the issue?

amp-timeago causes layout shift, particularly when no default value is given, due to changing width of the element

How do we reproduce the issue?

Use amp-timeago with layout="fixed-height"

Example: https://www.livescience.com/amp/21312-freedom-of-the-press.html

What browsers are affected?

all browsers

Which AMP version is affected?

2003031842100

wassgha commented 4 years ago

/cc @ampproject/wg-ui-and-a11y

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

samouri commented 3 years ago

@caroqliu: is this something that is addressed in the Bento component? If yes, can it be trivially backported to 0.1?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.