microsoft / microsoft/vscode-css

lvmax, svmax, lvmin and svmin CSS units are not being highlighted

Open
#42 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
27
Forks
25
Avg merge
3d 19h
Merged PRs (30d)
2

Description

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: Version: 1.100.2
  • OS Version: MacOS 15.4

Steps to Reproduce:

  1. Create a .css file
  2. Use the lvmax, svmax, lvmin or svmin units.
  3. The regular vmax and vmin units are being highlighted properly, while these 4 are not.

Image
...here you can see how it is not recognized as a valid unit and is just shown in white.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the CSS TextMate grammar in this repository and compare how the existing vmax and vmin units are recognized. Reproduce the issue in a .css file using lvmax, svmax, lvmin, and svmin; it is done when all four units receive the same syntax highlighting as the recognized viewport units.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.