atom / language-css

CSS package for Atom
Other
59 stars 84 forks source link

Aspect Ratio syntax highlighting broken in Textmate grammar #190

Open alexr00 opened 2 years ago

alexr00 commented 2 years ago

Originally from @mikeybinnswebdesign in https://github.com/microsoft/vscode/issues/136435

Prerequisites

Description

The top scope for aspect-ratio is meta.property-name.css when it should maybe also have support.type.property-name.css.

Steps to Reproduce

  1. Open VS Code with extensions disabled.
  2. Open a new file, and choose CSS as the language
  3. Paste in the following:
    .test {
    color: #fff;
    aspect-ratio: 1;
    aspect-ratio: 1 / 1;
    }

Expected behavior:

the aspect-ratio property text should be the same colour as the color property

Actual behavior:

the aspect-ratio text is a different color

Possible explaination: The hover information for aspect-ratio says it is an experimental property, but this is not the case any more. It's now fully implemented for all modern browsers.

Reproduces how often:

100%

Versions

Additional Information