css syntax coloring doesn't work properly with css custom media
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- css
- Domain
- frontend
Research direction
Start by reproducing the issue in a CSS file using a custom media query such as @media (--desktop-down) {} with extensions disabled. Inspect the CSS TextMate grammar used by vscode-css and compare the highlighting with standard media queries. Done means custom media syntax receives correct syntax coloring in the reproduced case.
Written by the indexing model from the issue text.
Description
CSS files using custom media queries (e.g. @media (--desktop-down) {..}) have incorrect syntax highlighting (see attached image)
Does this issue occur when all extensions are disabled?: Yes
It occurs in vscode insiders too
- VS Code Version: 1.103.0
- OS Version: OSX 15
Steps to Reproduce:
- Create a css file using custom media syntax
- Dominant language
- JavaScript
- Stars
- 27
- Forks
- 25
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 1
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/vscode-css
-
CSS Bracket colorization error when } is inside of urlPossibly taken @aeschli claimed this 15 days ago. Open
microsoft/vscode-css#66 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
CSS highlighting breaks when a nested rule comes before a custom property in the same blockMay be free again @alexr00 claimed this 66 days ago, and no pull request is open. Open
microsoft/vscode-css#54 · 3 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
microsoft/vscode-css#53 · 6 comments · 28 reactions ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
microsoft/vscode-css#46 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
microsoft/vscode-css#44 · 1 comment · 5 reactions ·
Maintainers usually reply within 1 day
All issues in microsoft/vscode-css
Similar issues
-
Edit: RTE News LogoOpencheck:failed logos:edit
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
iptv-org/database#36354 · 1 comment ·
Maintainers usually reply within 4 days
-
agentic-workflows documentation workflow-editor
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
githubnext/gh-aw-workshop#4139 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
CircuitVerse/CircuitVerse#7967 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
CopilotKit/aimock#491 ·
Maintainers usually reply within 1 day
-
cvss-severity:high devguard l3montree-cybersecurity/.../devguard-documentation pkg:devguard/l3montree-c.../devguard-documentation risk:low state:open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
l3montree-dev/devguard-documentation#338 · 1 comment ·