Important: this documentation is not applicable to your currently selected format stories!
Adds several dynamic CSS class names onto the <body> element.
<script async custom-element="amp-dynamic-css-classes" src="https://cdn.ampproject.org/v0/amp-dynamic-css-classes-0.1.js"></script>
The AMP Dynamic CSS Classes extension adds the following CSS classes
One or more referrer classes will be set, one for each level of
subdomain specificity. For example,
www.google.com will add three
We currently have a few special cases:
- When the user came through a Twitter
t.coshort link, we instead use
twitter.comas the referrer.
- When the string "Pinterest" is present in the User Agent string and there is no referrer, we use
www.pinterest.comas the referrer.
amp-viewer class will be set if the current document is being
displayed inside a Viewer.
You've read this document a dozen times but it doesn't really cover all of your questions? Maybe other people felt the same: reach out to them on Stack Overflow.Go to Stack Overflow Found a bug or missing a feature?
The AMP project strongly encourages your participation and contributions! We hope you'll become an ongoing participant in our open source community but we also welcome one-off contributions for the issues you're particularly passionate about.Go to GitHub