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

WordPress Trac noreply at wordpress.org
Sun Aug 11 11:04:51 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:  6.6.2
Component:  Help/About                 |     Version:  6.5
 Severity:  normal                     |  Resolution:
 Keywords:  needs-patch needs-testing  |     Focuses:
---------------------------------------+---------------------

Comment (by wildworks):

 Thanks everyone for your feedback.

 I haven't found an ideal approach, but I can think of three approaches:

 1. Use `text-wrap:pretty` instead of `text-wrap:balance`. This approach
 will have a bigger impact because it will change the wrapping position of
 headings in all locales.
 2. Override `text-wrap` in specific locales. This approach would require a
 selector like `html[lang="ja"]`, and using a selector hardcoded for a
 specific locale in the core may not be ideal.
 3. Add `word-break: auto-phrase`. This value is only valid when
 `lang="ja"` is specified, so it will not affect other locales. However, it
 is not supported by Firefox and Safari ([https://developer.mozilla.org/en-
 US/docs/Web/CSS/word-break#browser_compatibility MDN link]).

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


More information about the wp-trac mailing list