Closed justid closed 4 years ago
Line 1: <div>test</div>
ORIGINAL HTML
---------------
Line 1: <div style="color:green;margin-left:30px;">test</div>
AMP-HTML Validation Issues and Fixes
-------------------------------------
FAIL
<div style="color:green;margin-left:30px;"> on line 1
- The attribute 'style' may not appear in tag 'div'.
[code: DISALLOWED_ATTR category: DISALLOWED_HTML]
ACTION TAKEN: div.style attribute was removed due to validation issues.
I also need this, and as you said based on the AMP documentation it is valid, so I propose to create a PR for this.
output:
I was so confused, why is that?I thought inline-style was legally in AMP page.