[wp-trac] [WordPress Trac] #42200: Code Editor: false error on "@charset"

WordPress Trac noreply at wordpress.org
Thu Oct 12 16:46:03 UTC 2017


#42200: Code Editor: false error on "@charset"
--------------------------+------------------------------
 Reporter:  joneiseman    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:  administration
--------------------------+------------------------------
Changes (by helen):

 * keywords:   => close


Comment:

 It seems that `@charset` needs 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/@charset

 Not 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42200#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list