The boilerplate styles for the CSS (including the noscript version) should not have linebreaks in order to validate as AMP HTML.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 2686807-9-boilerplate-styles.patch | 5.33 KB | rainbowarray |
The boilerplate styles for the CSS (including the noscript version) should not have linebreaks in order to validate as AMP HTML.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 2686807-9-boilerplate-styles.patch | 5.33 KB | rainbowarray |
Comments
Comment #2
rainbowarrayI'm not finding a validation error for this. Could you please provide more information on where you are seeing this validation error?
Comment #3
Zsuffa Dávid commentedI can confirm the issue and removing whitespaces resolve it.
Non minified:
http://postimg.org/image/5t16ocy2n/
Minified:
http://postimg.org/image/uagp1338z/
https://www.drupal.org/node/2693233#comment-11052295
Comment #4
rainbowarrayComment #5
rainbowarrayTook a bit more work to squeeze all the space out of the boilerplate styles. Starting with patching 8.x branch, then will move to 7.x branch.
Comment #7
rainbowarrayMerging in the 8.x fix. Working on 7.x next. Thanks for help with patches and tests everybody.
Comment #8
rainbowarrayComment #9
rainbowarraySlightly different approach necessary for the D7 patch. Controlling whitespace was more of a pain without Twig, so I ended up putting all the boilerplate styles + markup into one include file.
Comment #11
rainbowarray