atom / language-css

CSS package for Atom
Other
59 stars 77 forks source link

CSS background property showing under invalid.deprecated scope despite not being invalid/deprecated. #198

Open Monstarrrr opened 2 years ago

Monstarrrr commented 2 years ago

Prerequisites

I don't actually use Atom so I haven't run some of the following:

Description

Reported the issue on vscode, been told it has to do with this repo so i'm reposting it here.
The background property under transition is showing up under the invalid.deprecated.color.system.css scope, which makes it show up as an error.

Steps to Reproduce

  1. Create a new css file
  2. Add the following code
    .test {
    transition: background;
    }

    Alternatively :

    .test {
    background: white;
    }
    .test:hover {
    background: red;
    transition: background 2s;
    }
  3. Inspect editor tokens and scopes
  4. Hover on background

Expected behavior:

Should not show as deprecated/invalid because the background property is animatable and not deprecated: MDN docs | W3C docs.

Actual behavior:

The background property under transition is showing up under the invalid.deprecated.color.system.css scope, which makes it show up as an error.

Reproduces how often:

100%

Additional Information

https://github.com/microsoft/vscode/issues/150057