Skip to content

(CSS) preserve-3d gets highlighted incorrectly #4531

Description

@rebane2001

Describe the issue
The transform-style: preserve-3d keyword gets highlighted incorrectly, turning the number 3 into a different color, presumably due to the -3 part.

Which language seems to have the issue?
css

Are you using highlight or highlightAuto?
highlight

Sample Code to Reproduce

div {
  transform-style: preserve-3d;
}

which hljs highlights into:

Image

Expected behavior
Same as GitHub's highlighting - the preserve-3d part should be the same color.

Additional context
This doesn't repro for values such as f00-b4r, where the number is not directly following a hyphen.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions