Archived topic
CSS errors
7 replies · Started by roadlink on May 1, 2021
Hello,
I was checking my site and saw below errors.
Then I have check 2 more site from site library, they also have same error.
So I thought it may be related with the GP.
Any advice?
Error: CSS: -ms-grid-columns: Parse Error.
At line 59, column 5408.
columns:(1fr)[2];grid-template
Error: CSS: -ms-grid-columns: Parse Error.
At line 59, column 5588
columns:(1fr)[2];grid-template
https://validator.w3.org/nu/?doc=https%3A%2F%2Fgpsites.co%2Fniche%2F
https://validator.w3.org/nu/?doc=https%3A%2F%2Fgpsites.co%2Fprime%2F
Hi there,
The parser simply doesn't like the -ms- prefix. However, it's necessary for the code to work in IE11 and older versions of Edge.
As old browsers continue to fade away we'll be able to remove it :)
fair enough. Thanks Tom.
No problem!
Hi. Can you suggest a way to erase it despite the problems of older browsers?
Hi there,
are you wanting to remove the prefixes that Tom mentions here:
https://generatepress.com/forums/topic/css-errors-2/#post-1760635
If so, its not possible without editing the themes stylesheets - which we do not recommend as those changes will be lost when the theme is updated.
Hi David. Yes i would like to remove them due a european programm that requires zero errors in w3 validator. As i saw this inline css is created from the Woocommerce module of gp premium. When i deactivate it, the error stops.
There isn't anything we can do to change that today.
We are making some changes in the next GPP update that will remove the speak: none; property that W3C will flag as an error. But the prefixes and any Microsoft CSS Grid properties that get flagged are necessary for backwards compatibility.
As Tom stated above:
As old browsers continue to fade away we’ll be able to remove it