amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

CSS Comment breaks validation

Open joshcp opened this issue 5 years ago • 1 comments

What's the issue?

When a string containing disallowed class prefix is present in a CSS comment it is flagged as a validation error.

How do we reproduce the issue?

Add a CSS comment within <style amp-custom> containing a disallowed class name, such as:

<style amp-custom> /* Can't use .i-amphtml- selectors here */ </style>

What browsers are affected?

All browsers

Which AMP version is affected?

Probably not a new issue, first identified on a page using AMP version 2103122145004

joshcp avatar Mar 26 '21 18:03 joshcp

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 19 '25 05:07 stale[bot]