You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ok, you are correct
here's probably what happened. that page needs CSS that is not defined in the SCSS libs and generated as compiled CSS during build.
so page authors added compiled CSS and placed it as a second instance of <style amp-custom> in <body> (since they cannot inject it into <head><style amp-custom> during build).
there is nothing invalid about the CSS; it's simply "in the wrong place"
an easy fix: transform target CSS to SCSS as a specific library and add that SCSS lib to page source.
The following page is AMP invalid:
The parent tag of tag 'style amp-custom' is 'section', but it can only be 'head'.
https://validator.amp.dev/#url=https://amp.dev/documentation/guides-and-tutorials/learn/amp-html-layout/layouts_demonstrated&errno=0
https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#stylesheets
The text was updated successfully, but these errors were encountered: