[wp-trac] [WordPress Trac] #59960: Replace em-based `line-height` with unitless values

WordPress Trac noreply at wordpress.org
Mon Jun 10 19:10:24 UTC 2024


#59960: Replace em-based `line-height` with unitless values
-------------------------------------+-------------------------------------
 Reporter:  sabernhardt              |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  6.7
Component:  Administration           |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  good-first-bug has-      |     Focuses:  css, administration,
  patch needs-testing                |  coding-standards
-------------------------------------+-------------------------------------
Description changed by sabernhardt:

Old description:

> Follow-up to #44643
>
> The default `line-height` of `1.4em` can cause issues, at least when
> elements within the `body` have a larger font size than their container
> ~~in the iframe-based editor~~. Other instances probably could be
> unitless too (while keeping their numeric value).
>
> {{{
> body {
>         line-height: 1.4;
> }
> }}}

New description:

 Follow-up to #44643

 The default `line-height` of `1.4em` can cause issues, at least when
 elements have a larger font size than their container. Other instances
 probably could be unitless too (while keeping their numeric value).

 {{{
 body {
         line-height: 1.4;
 }
 }}}

--

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


More information about the wp-trac mailing list