amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

classes not removed by amp-font

Open ericfs opened this issue 8 years ago • 3 comments

What's the issue?

All document text remain hidden because classes that should be removed by amp-font are not removed.

It's possible this is a misconfiguration on the publisher's part, but my naive inspection didn't find a problem.

How do we reproduce the issue?

Go to: https://newatlas.com/radio-waves-vaporize-electronics/53134/?amp=true None of the text in <p> tags is visible, but ads and images are visible.

What browsers are affected?

Chrome 64.0.3282.119

Which AMP version is affected?

1516833286380

ericfs avatar Jan 30 '18 14:01 ericfs

cc @cvializ @aghassemi

camelburrito avatar Jan 30 '18 19:01 camelburrito

Hey thanks for reporting this! However I think it is a configuration error and not a bug.

I notice the font classes are on the <body> tag. According to the docs

These classes are toggled on the documentElement for standalone documents, and on body for documents without a documentElement i.e. inside a ShadowRoot

Since this document is standalone, the classes need to be on the <html> tag i.e. the documentElement.

cvializ avatar Jan 30 '18 19:01 cvializ

Thanks for looking!

ericfs avatar Jan 30 '18 19:01 ericfs