[wp-trac] [WordPress Trac] #60892: About Page: `text-wrap: balance; `adds unintended new lines in Japaneese

WordPress Trac noreply at wordpress.org
Wed Apr 3 01:40:43 UTC 2024


#60892: About Page: `text-wrap: balance;`adds unintended new lines in Japaneese
--------------------------+-----------------------------
 Reporter:  wildworks     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Help/About    |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In the about page of WordPress 6.5, `text-wrap:balance` is applied to the
 h1/h2/h3/h4 elements.

 https://github.com/WordPress/wordpress-
 develop/blob/8c91078a6ae92560f3025ec34eab9b1169ec2e27/src/wp-
 admin/css/about.css#L408

 This may work beautifully in Latin languages, but it adds unintended new
 lines, at least in Japanese.

 For example, let's take the heading "Add and manage fonts across your
 site" as an example. In English, it is displayed as follows:

 {{{
 Add and manage
 fonts across your site
 }}}

 On the other hand, in Japanese, it is displayed as follows:

 {{{
 サイト全体へのフォ
 ントの追加と管理
 }}}

 The words are wrapped in the middle, but if you compare it to English, it
 is similar to how it would be displayed as shown below.

 {{{
 Add and man
 age fonts across your site
 }}}

 At least in Japanese, I would expect no wrapping at all, that is, the text
 would be wrapped to fit the width of the container.

 I would be happy if someone could test what effect `text-wrap:balance` has
 on other CJK languages.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60892>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list