Opened 8 years ago
Closed 8 years ago
#3106 closed defect (bug) (fixed)
Use unitless numbers for line-height values
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Cc: |
Description
Per WordPress CSS Coding Standards:
https://make.wordpress.org/core/handbook/best-practices/coding-standards/css/#values
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:
http://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
https://developer.mozilla.org/en-US/docs/Web/CSS/line-height#Prefer_unitless_numbers_for_line-height_values
FYI: The next release of stylelint-config-wordpress
v11 enforces unitless numbers for line-height values for %
and em
values, not px
In 6408: