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

Incorrect "outdated gradient" warning on background shorthand #1015

Closed
radium-v opened this issue Apr 9, 2018 · 2 comments
Closed

Incorrect "outdated gradient" warning on background shorthand #1015

radium-v opened this issue Apr 9, 2018 · 2 comments
Labels

Comments

@radium-v
Copy link

radium-v commented Apr 9, 2018

Hi,

This input returns an incorrect warning:

a { background: radial-gradient(#FFF, transparent) 0 0 / cover no-repeat #F0F; }

The error:

2:2 ⚠ Gradient has outdated direction syntax. Replace cover to farthest-corner. [autoprefixer]

In this context, cover is used as the background-size, not the radial-gradient direction.

@ai ai added the bug label Apr 9, 2018
@ai
Copy link
Member

ai commented Apr 9, 2018

Yeap. It is a bug. Do you want to fix it and save your name in big project history?

if (decl.value.indexOf('radial-gradient') !== -1) {

@radium-v
Copy link
Author

radium-v commented Apr 9, 2018

Why not, regular experssions are great fun

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

No branches or pull requests

2 participants