Search code examples
amp-html

Do style attributes contribute to the 50k css limit


In an amp page, I know there is a 50k limit that is allowed for css (between style tags in the head). I'm wondering if inline style attributes contribute to the size as well?

I can't find this in the docs anywhere


Solution

  • Maximum size

    It is a validation error if the author stylesheet or inline styles together are larger than 75,000 bytes. For more infomation click here

    Note : Each instance of an inline style has a 1,000 byte limit.