atom/language-css

CSS code highlighting on some properties not working

Opened this issue · 1 comments

Prerequisites

Description

When using some of the newer properties, code highlighting does not work:
Schermafbeelding 2022-02-09 om 19 28 46
Strangely enough, other just-as-new props are being correctly highlighted.

Steps to Reproduce

Reproduces with this snippet:

.quotation {
	position: relative;
	padding-block: 1.rem;
}

Expected behavior:

position and padding-block have the same scopes.

Actual behavior:

position scopes:
support.type.property-name.css
meta.property-name.css
meta.property-list.css
source.css

padding-block scopes:
meta.property-name.css
meta.property-list.css
source.css

Reproduces how often:

100%

Versions

Additional Information

Originally from @hansgrimm in microsoft/vscode#142658

My PR #193 might fix this?