hint icon indicating copy to clipboard operation
hint copied to clipboard

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

Open hamirmahal opened this issue 1 year ago • 7 comments

🐞 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 avatar May 14 '24 07:05 hamirmahal

image

hamirmahal avatar May 14 '24 07:05 hamirmahal

image

hamirmahal avatar May 14 '24 07:05 hamirmahal

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

hamirmahal avatar May 14 '24 07:05 hamirmahal

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

hamirmahal avatar May 14 '24 07:05 hamirmahal

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.

captainbrosset avatar May 14 '24 11:05 captainbrosset

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?

hamirmahal avatar May 15 '24 22:05 hamirmahal

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

captainbrosset avatar May 16 '24 12:05 captainbrosset

thanks for reporting this @hamirmahal, you are right I recently updated BCD to avoid this issues, but have been busy with other work. I hope I have time this week to make a release for vscode extension.

vidorteg avatar Jun 05 '24 16:06 vidorteg

You're welcome @vidorteg.

hamirmahal avatar Jun 05 '24 17:06 hamirmahal