w3c / css-validator

W3C CSS Validation Service
https://jigsaw.w3.org/css-validator/
Other
204 stars 105 forks source link

False positive error about text-wrap:balance #415

Closed hannob closed 5 months ago

hannob commented 5 months ago

The CSS validator will compain about text-wrap:balance:

Property text-wrap doesn't exist : balance 

Spec: https://www.w3.org/TR/css-text-4/#text-wrap-style

ylafon commented 5 months ago

Fixed with the latest PR folded in Thanks for the report

treb0r commented 4 months ago

When will this land in the current available online validator?

ylafon commented 4 months ago

It is already online.

treb0r commented 4 months ago

I have just tried to validate a page that includes the text-wrap property and I am still seeing the following error:

Error: CSS: text-wrap: Property text-wrap doesn't exist.

hannob commented 4 months ago

@treb0r That looks like a different error. Can you share which page this is or at least share an example css or html file triggering this?

treb0r commented 4 months ago

The page is here

hannob commented 4 months ago

I think I see what's going on.

The CSS validator has multiple errors about that page, but none about text-wrap: https://jigsaw.w3.org/css-validator/validator?uri=https%3A%2F%2Fsuper-yeot-9f3397.netlify.app%2Fnews%2Fnews-01%2F&profile=css3svg&usermedium=all&warning=1&vextwarning=&lang=en

But the HTML validator appears to check the embedded CSS and shows such an error: https://validator.w3.org/nu/?doc=https%3A%2F%2Fsuper-yeot-9f3397.netlify.app%2Fnews%2Fnews-01%2F

Now the question is: Does the HTML validator contain its own code for CSS validation or is it passing css pieces on to the css validator?

treb0r commented 4 months ago

Thanks, didn't think to check the CSS validator.

ylafon commented 4 months ago

VNU embed a version of the CSS Validator, but it has not been upgraded since the recent changes. It will happen soon.

sideshowbarker commented 4 months ago

https://validator.w3.org/nu/ has now been updated