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)
DevTools
Style Editor
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1132557
People
(Reporter: jason.barnabe, Assigned: Kwan)
References
Details
(Whiteboard: [fixed-upstream])
Attachments
(1 file)
17.27 KB,
image/png
|
Details |
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.
Assignee | ||
Comment 1•10 years ago
|
||
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
Assignee | ||
Comment 2•10 years ago
|
||
This has now been fixed upstream in
https://github.com/codemirror/CodeMirror/commit/6b9511d11d227aa2b971d239b45ca698a3060714
and
https://github.com/codemirror/CodeMirror/commit/2d544462f25e5a0a622016d914725c6389742838
Will open bug for upgrading CodeMirror once 4.13 is released.
Whiteboard: [fixed-upstream]
Assignee | ||
Updated•9 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•