Originally reported as: ampproject/amp-by-example#1454
When you apply any CSS to <amp-fit-text> that affects the size (e.g. padding, border), the sizing is done without taking any of those properties into consideration.
As a workaround, you can apply the styles to a parent container of <amp-fit-text>, which will affect the the measuring element. This workaround does not work for line-height, since that is set on the measuring Element directly.
Originally reported as: ampproject/amp-by-example#1454
When you apply any CSS to
<amp-fit-text>that affects the size (e.g. padding, border), the sizing is done without taking any of those properties into consideration.As a workaround, you can apply the styles to a parent container of
<amp-fit-text>, which will affect the the measuring element. This workaround does not work forline-height, since that is set on the measuring Element directly.