Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Aspect Ratio syntax highlighting broken in Textmate grammar #190

@alexr00

Description

@alexr00

Originally from @mikeybinnswebdesign in microsoft/vscode#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions