[wp-trac] [WordPress Trac] #43220: CSS Coding standards: Use double quotes for values

WordPress Trac noreply at wordpress.org
Sat Feb 3 12:08:04 UTC 2018


#43220: CSS Coding standards: Use double quotes for values
----------------------------+-----------------------------
 Reporter:  afercia         |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 As per the [https://make.wordpress.org/core/handbook/best-practices
 /coding-standards/css/#values CSS Coding standards]:

 Values:
 Use double quotes rather than single quotes, and only when needed, such as
 when a font name has a space.

 Specifically, for CSS generated content (especially icons) there are good
 reasons to always use double quotes, see [34011] / #33786. Even when the
 icons don't have to be swapped for RTL, using double quotes it's always a
 good practice.

 I'd also propose to update the Coding Standards page to explicitly mention
 values for the `content` property.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43220>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list