Make WordPress Core

Changeset 60921


Ignore:
Timestamp:
10/10/2025 05:26:56 PM (2 months ago)
Author:
joedolson
Message:

Bundled Themes: Prevent pre from overflowing container.

Update CSS to set overflow-x: auto on pre elements in Twenty Twenty Two and Twenty Twenty Five.

Props pateljaymin, jaiminp, nikunj8866, sabernhardt, rollybueno, joedolson.
Fixes #63875.

Location:
trunk/src/wp-content/themes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyfive/style.css

    r60452 r60921  
    6060    display: block;
    6161}
     62
     63/*
     64 * Prevents unnecessary scrollbars while handling long lines of preformatted text.
     65 * https://core.trac.wordpress.org/ticket/63875
     66 */
     67:where(pre) {
     68    overflow-x: auto;
     69}
  • trunk/src/wp-content/themes/twentytwentytwo/style.css

    r60159 r60921  
    160160    margin-bottom: 1rem;
    161161}
     162
     163/*
     164 * Prevents unnecessary scrollbars while handling long lines of preformatted text.
     165 * https://core.trac.wordpress.org/ticket/63875
     166 */
     167
     168:where(pre) {
     169    overflow-x: auto;
     170}
Note: See TracChangeset for help on using the changeset viewer.