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

Font Smoothing Property is Not Changed By Autoprefixr #3576

Open
dahlfors opened this issue Jan 15, 2016 · 6 comments
Open

Font Smoothing Property is Not Changed By Autoprefixr #3576

dahlfors opened this issue Jan 15, 2016 · 6 comments
Milestone

Comments

@dahlfors
Copy link

Semantic-UI uses "font-smoothing: antialiased" in six different places: https://github.com/Semantic-Org/Semantic-UI/search?q=font-smoothing&type=Code&utf8=%E2%9C%93

There is no such CSS property, neither is such a property planned to be included in CSS in any near future.

To affect font-smoothing you need to use the vendor-specific "-webkit-font-smoothing: antialiased;" and "-moz-osx-font-smoothing: grayscale;".

@jlukic
Copy link
Member

jlukic commented Jan 15, 2016

We use autoprefixer which should be adding the vendor prefix for us. It looks like from perusing our dist/ folder that font-smoothing does not automatically translate to -webkit-font-smoothing

@jlukic jlukic changed the title Use of non-existent CSS property "font-smoothing" Font Smoothing Property is Not Changed By Autoprefixr Jan 15, 2016
@jlukic jlukic added this to the 2.2 milestone Jan 15, 2016
@jlukic jlukic modified the milestones: 2.2.x, 2.2 May 1, 2016
@tcmal
Copy link
Contributor

tcmal commented Apr 20, 2018

font-smooth property is not part of standard:

Though present in early (2002) drafts of CSS3 Fonts, font-smooth has been removed from this specification and is currently not on the standard track.

It is very bad thing. Autoprefixer could not add prefixes for non-standard properties, because CSS will not be useful in future.

postcss/autoprefixer#763

So it looks like there's no plans for autoprefixer to support this property, nor an assurance it will continue to exist, meaning it should probably be removed altogether.

@SaveYourTime
Copy link

@jlukic This seems to be a well know bug for font-smoothing: antialiased;.
How come it still not be change to -webkit-font-smoothing: antialiased;?

@developer-collin
Copy link

developer-collin commented May 3, 2018

To clarify, this is not a bug. font-smoothing is a non-standard feature of certain browsers.

https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth

Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

Though present in early (2002) drafts of CSS3 Fonts, font-smooth was removed and this specification is not on the standards track.

@niftylettuce
Copy link

You could probably use https://github.com/morishitter/postcss-font-smoothing as an alternative and recommend this in the README or something.

@PB-ux
Copy link

PB-ux commented Jan 19, 2023

Hi, when I hover the boxes the white text is changing smoothing automatically and getting it fixed automatically as well, not sure why font smoothness is being changed. I don't know ?

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

No branches or pull requests

7 participants