[wp-trac] [WordPress Trac] #48402: Preformatted blocks do not remove styled line spacing

WordPress Trac noreply at wordpress.org
Tue Aug 17 21:31:22 UTC 2021


#48402: Preformatted blocks do not remove styled line spacing
---------------------------+------------------------------
 Reporter:  trickywidget   |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:  5.3
 Severity:  normal         |  Resolution:
 Keywords:  2nd-opinion    |     Focuses:
---------------------------+------------------------------

Comment (by sabernhardt):

 I opened GB34127 to request a line-height control in the editor so that
 value can be edited—using any theme—when necessary.

 I do not agree with reducing a theme's `pre` element line-height lower
 than 1.5 because a larger value can help when reading Verse and Code block
 content (also using `pre` tags). Twenty Nineteen's line-height is quite
 high at 1.8, though that matches the paragraph.

 - **Twenty Ten:** 1.4 within `#content` (where a paragraph is 1.667), or
 1.5 in a widget (same for pre and paragraph)
 - **Twenty Eleven:** 1.5 (paragraph is 1.625)
 - **Twenty Twelve:** 1.714285714 within `.entry-content` and `.comment-
 content` (same as paragraph); `pre` inherits `body` line-height of 1 in
 widgets (where paragraphs have 1.846153846 line-height)
 - **Twenty Thirteen:** no specific line-height for pre, but `body` has 1.5
 - **Twenty Fourteen:** 1.6 (paragraph is 1.5); pre is slightly taller in
 widgets (1.6363636363)
 - **Twenty Fifteen:** 1.2 (paragraph is 1.6) at narrower screen widths (on
 larger screens and IE, pre line-height increases slightly to around 1.25
 within content area, or 1.5 within a widget)
 - **Twenty Sixteen:** 1.3125 (paragraph is 1.75); in widgets, pre and
 paragraph line-heights match at larger screen widths (1.6153846154)
 - **Twenty Seventeen:** 1.6 (paragraph is 1.66, or 1.5 at larger screen
 widths)
 - **Twenty Nineteen:** 1.8 (same as paragraphs)
 - **Twenty Twenty:** 1.5 (paragraphs are 1.4 to 1.476 within `.entry-
 content`, or 1.5 in widgets)
 - **Twenty Twenty-One:** no specific line-height for pre, but the
 `--global--line-height-body` variable used on `html` equals 1.7

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


More information about the wp-trac mailing list