amp-social-share causes layout shift on upgrade #30649
Labels
Component: amp-social-share
P1: High Priority
Stale
Inactive for one year or more
Type: Bug
WG: components
What's the issue?
When
.i-amphtml-unresolved
class is removed on component upgrade, overflow is changed fromhidden
tovisible
, which causes subsequent elements to shift (both sibling inline element and following image).This issue was surfaced by this issue from the Page Experience tool (ampproject/wg-performance#48).
This may be related to #27228 but
data-mode=replace
is not used in the example.How do we reproduce the issue?
Visit the URL below with "Layout Shift Regions" enabled in Rendering tab of Chrome Dev Tools to visualize the layout shift.
https://tasty.co/amp/recipe/garlic-bread-bruschetta
What browsers are affected?
Chrome 87
Which AMP version is affected?
2009252320001
The text was updated successfully, but these errors were encountered: