AMP Validation Error for CSS: !important
-
Hi,
I got lots of validation errors from Google on my AMP pages with error of “The text inside tag ‘style amp-custom’ contains ‘CSS !important’, which is disallowed.”.I notice the plugin outputs many of these lines, for example: .amp-wp-content .amazon-image-wrapper a amp-img img{height:auto;position:relative!important}
If I deactive the plugin, these CSS types that Google AMP validator does not like go away. Wondering if you can provide an update to work around these issues (or if something we can do to remove these generations in the mean time), and if it’s going to have any effect without the “important” bit?
Thanks,
MikeThe page I need help with: [log in to see the link]
- The topic ‘AMP Validation Error for CSS: !important’ is closed to new replies.