Closed Bug 977665 Opened 11 years ago Closed 9 years ago

CodeMirror does not syntax highlight selectors inside @-moz-document or @supports

Categories

(DevTools :: Style Editor, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1132557

People

(Reporter: jason.barnabe, Assigned: Kwan)

References

Details

(Whiteboard: [fixed-upstream])

Attachments

(1 file)

Attached image screenshot
Entering this code into Style Editor: --- @-moz-document domain(google.com) { body { color: red; } #id { color: blue; } } @media media { body { color: red; } #id { color: blue; } } @supports (display: table-cell) { body { color: red; } #id { color: blue; } } body { color: red; } #header { color: blue; } --- The "body" and "#header" selectors inside @media and outside any other @-block get syntax highlighting - they turn different shades of blue. Inside @-moz-document and @supports, they are red.
Fixing this in https://github.com/codemirror/CodeMirror/pull/3065 and https://github.com/codemirror/CodeMirror/pull/3066 Will open a dependant bug on upgrading CodeMirror if they get merged.
Assignee: nobody → moz-ian
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: x86_64 → All
Whiteboard: [fixed-upstream]
Depends on: 1132557
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: