(CSS) preserve-3d gets highlighted incorrectly
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- css
- Domain
- tooling
Research direction
Start with the CSS language definition and reproduce the issue using the supplied transform-style: preserve-3d snippet with highlight. Compare the generated highlighting with the expected result, then verify that preserve-3d remains uniformly colored while cases such as f00-b4r are unchanged.
Written by the indexing model from the issue text.
Description
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:
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.
- Dominant language
- JavaScript
- Stars
- 25k
- Forks
- 3.8k
- Avg merge
- 11h 35m
- Merged PRs (30d)
- 3
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.
More from highlightjs/highlight.js
-
bug help welcome language
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
highlightjs/highlight.js#4516 · 2 comments ·
-
version-12
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
highlightjs/highlight.js#4500 ·
-
Flix overlap Openlanguage version-12
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
highlightjs/highlight.js#4440 · 1 comment ·
-
bug help welcome parser
Difficulty 4/5 3-5 days Newbie friendliness 45/100
highlightjs/highlight.js#4543 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
highlightjs/highlight.js#4529 ·
All issues in highlightjs/highlight.js
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·