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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Extension incorrectly says '@layer' is not supported by Chrome, Chrome Android, Edge... #5854

Open
hamirmahal opened this issue May 14, 2024 · 7 comments

Comments

@hamirmahal
Copy link

馃悶 Bug report

Description

The webhint extension for VSCode says '@layer' is not supported by Chrome, Chrome Android, Edge, Opera, Samsung Internet. compat-api/css, but the page it links, https://developer.mozilla.org/en-US/docs/Web/CSS/@layer, says otherwise.

Details

I have v2.1.12 of the webhint extension for VSCode.

@hamirmahal
Copy link
Author

image

@hamirmahal
Copy link
Author

image

@hamirmahal
Copy link
Author

If I wanted to fix issues like these in the future, where in the source code would I look?

@hamirmahal
Copy link
Author

I cloned this repository locally and saw 0 results when searching the codebase for @layer.

@captainbrosset
Copy link
Contributor

captainbrosset commented May 14, 2024

Thanks for reporting.

I cloned this repository locally and saw 0 results when searching the codebase for @layer.

This is expected. The source code in this repo doesn't directly deal with browser compat warnings. Instead, it uses a third-party library to do this. That library is browser-compat-data (BCD).

So, most likely, the problem is that the version of BCD used here is not the latest, and therefore webhint shows outdated warnings.

The fix would be to bump the version of BCD used in the dependencies of this project.

@hamirmahal
Copy link
Author

You're welcome. It looks like dac7399 bumped BCD a couple of weeks ago.

How long does it take for changes here to propagate to the webhint extension for VSCode?

@captainbrosset
Copy link
Contributor

I'm not familiar enough with the release process for webhint. Let me ping @vidorteg here.

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

2 participants