Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property "text-rendering" doesn't exist #135

Closed
Alecto opened this issue Aug 16, 2022 · 3 comments
Closed

Property "text-rendering" doesn't exist #135

Alecto opened this issue Aug 16, 2022 · 3 comments

Comments

@Alecto
Copy link

Alecto commented Aug 16, 2022

the validator swears at this line of code...
image
image

standard font awesome 4.7 style is used

.fa {
  display: inline-block;

  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: auto;
}

online validation passes without errors
image

@corymharper
Copy link
Contributor

That is because the profile we currently use when making requests to the W3C CSS Validator API is css3 the value you used when entering it on their website is css3svg. Thats not a profile value that they document: https://jigsaw.w3.org/css-validator/manual.html#requestformat, but it is one that they use. We could consider using it, or at least creating an option to allow a change in profile, but thats the cause of the error you are seeing. text-rendering is not specified by the CSS specification, but rather by the SVG specification.

@Alecto
Copy link
Author

Alecto commented Aug 17, 2022

@corymharper
understood thanks.
Is it possible to switch the validation to css3svg in the plugin?
I didn't find such an option in the documentation.
this is important because bootstrap, font-awesome... validation gives errors, which is not the default (css3 + svg) in the online validator.
thanks for the help.

@WesCossick
Copy link
Member

Superseded by #143.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants