Skip to:

Opened 7 years ago

Closed 7 years ago

#3106 closed defect (bug) (fixed)

Use unitless numbers for line-height values

Reported by: netweb's profile netweb Owned by: netweb's profile netweb
Milestone: 2.6 Priority: normal
Severity: normal Version:
Component: General Keywords:


Per WordPress CSS Coding Standards:
Line height should also be unit-less, unless necessary to be defined as a specific pixel value. This is more than just a style convention, but is worth mentioning here.
More information:

FYI: The next release of stylelint-config-wordpress v11 enforces unitless numbers for line-height values for % and em values, not px

Change History (1)

#1 @netweb
7 years ago

  • Owner set to netweb
  • Resolution set to fixed
  • Status changed from new to closed

In 6408:

Build Tools: Update stylelint to 11.0.0 and use unitless values for line-height

This changeset updates stylelint to the latest version and removes % and em from line-height values per the WordPress CSS coding standards.

Fixes #3106.

Note: See TracTickets for help on using tickets.