CSS syntax highlighting shows warnings on valid CSS
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 970
- Forks
- 486
- Avg merge
- 3d 33m
- Merged PRs (30d)
- 170
Description
Parent Issue
No response
Problem Statement
Looks like Monaco code editor running in dotCMS is version 0.33. This version is quite out of date now, and doesn't have good highlighting support for things like css nesting, :has selector, etc that are baseline.
Steps to Reproduce
- Open a css file through the dotCMS UI
- Type or paste in CSS that includes these features
- Observe red squiggles and a warning on mouseover
Some example CSS that shows errors:
.foo {
.bar {
display: none;
}
}
.foo:has(> .bar) {
display: block;
}
Acceptance Criteria
Update Monaco to a more recent version
dotCMS Version
24.12.05
Proposed Objective
Code Maintenance
Proposed Priority
Priority 3 - Average
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
No response
Assumptions & Initiation Needs
No response
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
No response
Contributor guide
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.
Research direction
Start in the dotCMS UI code that configures the Monaco editor and check where version 0.33 is pinned. Reproduce the nested CSS and :has examples there; done means the updated editor no longer shows red squiggles or warnings for this valid CSS.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100