Site logo

Archived topic

W3 Validator errors

11 replies · Started by Marc on March 2, 2021

Viewing posts 1–12 of 12

For over a year I've been using output buffering to change some faulty CSS GeneratePress premium generates (it's within the generate-style-inline-css style tag). If I switch my tweak off, I get 9 errors like these:

Error: CSS: line-height: Too many values or values are not recognized.

{line-height:1,5;}

-bottom:1,5em;}

So, instead of n.n, GP produces n,n values which do not validate. Can this be fixed?

Hi there,

I'm not aware of anything like this.

Any chance you can link me to a page where I can see it?

That's certainly not default behavior.

In Customize > Typography > Body - what's your line height option set to? It looks like it's set to 1,5 instead of 1.5.

It is! So the problem lies in the l10n?. We Dutchmen use commas as deliminator.

Ah yes, that sounds like it! CSS values require periods as the deliminator :)

So I hear ;-) You can fix it, right?

Hi there,

there is no fix for it .... CSS will only accept a decimal . in the code. So you have to enter the value as 1.5 not 1,5

Okay, I see now I can change the comma to a full stop (which is a start), but if I accidentally use the arrows it defaults to a comma. I'm quite sure that's not a feature.

Yes, that's no good when it comes to a CSS value. We'll likely need to add some javascript to prevent that from happening.

Thanks for letting us know!

Thanks, Tom!

No problem!

This archived topic is closed to new replies.