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

VS Code autoprefix extension - unknown browser query #1154

Closed
alexljamin opened this issue Nov 7, 2018 · 3 comments
Closed

VS Code autoprefix extension - unknown browser query #1154

alexljamin opened this issue Nov 7, 2018 · 3 comments

Comments

@alexljamin
Copy link

When specifying in VS Code User Settings

{
"autoprefixer.browsers": [
        "cover 99.5%"
    ]
}

Returns

[Autoprefixer]

BrowserslistError: Unknown browser query `cover 99.5%`

Borwserslist docs say that cover 99.5% is a valid command.

What should I change to fix this issue?

macOS 10.13.6, VS Code 1.28.2

@Dan503
Copy link
Contributor

Dan503 commented Nov 7, 2018

I think what you want to change it to is >=0.5%.

@alexljamin
Copy link
Author

I have tried >=0.5% and for example, it does not prefix transition: background .5s ease;. Testing in https://autoprefixer.github.io/ >=0.5% does not add prefixes when cover 99.5% adds webkit, opera and mozilla prefixes.
Is this an expected behaviour?

@ai
Copy link
Member

ai commented Nov 7, 2018

@alljamin the problem is that VS Code uses very old Autoprefixer. You need to open an issue there and ask them to update Autoprefixer.

It is one of the reasons why we do not recommend to use text editor plugin. They mostly contain old prefixes and browsers databases.

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

No branches or pull requests

3 participants