Opened 9 years ago
Closed 5 years ago
#42200 closed defect (bug) (invalid)
Code Editor: false error on "@charset"
| Reported by: | joneiseman | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | administration |
Description
When I edit style.css in the code editor it reports a false error for the following line:
@charset "UTF-8";
Attachments (1)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
It seems that
@charsetneeds to be the very first element in the stylesheet and not preceded by anything, not even comments: https://developer.mozilla.org/en-US/docs/Web/CSS/@charsetNot sure how that plays out with the way themes need to define headers, but in this case the linter is correct that you have an error.