Bug 260857

Summary: Line break between Chinese/Japanese letters SHOULD be removed instead of replaced with a space
Product: WebKit Reporter: Tatsunori Uchino <tats.u>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: fantasai.bugs, Hironori.Fujii, karlcow, mmaxfield, webkit-bug-importer
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari 15   
Hardware: All   
OS: All   
Attachments:
Description Flags
iOS Safari 15 preview of https://codepen.io/tats-u/pen/YzdKKyN
none
Windows Playwright WebKit 1811 http://wyw.dcweb.cn/ff3_lb.html
none
Firefox preview of https://codepen.io/tats-u/pen/YzdKKyN
none
Firefox preview of http://wyw.dcweb.cn/ff3_lb.html none

Description Tatsunori Uchino 2023-08-29 06:45:04 PDT
Created attachment 467479 [details]
iOS Safari 15 preview of https://codepen.io/tats-u/pen/YzdKKyN

Firefox (OK): https://bugzilla.mozilla.org/show_bug.cgi?id=450088
Chromium: https://bugs.chromium.org/p/chromium/issues/detail?id=1473297

## What steps will reproduce the problem?

(1) See http://wyw.dcweb.cn/ff3_lb.html (referenced from the Firefox issue page) or https://codepen.io/tats-u/pen/YzdKKyN

## What is the expected result?

No extra spaces between Chinese / Japanese letters

## What happens instead?

Extra spaces are inserted into Chinese or Japanese sentences

## Please provide any additional information below. Attach a screenshot if
possible.

In Firefox,

- Newline between Chinese/Japanese and western/number/Korean => space
- Chinese/Japanese include CJK punctuation marks (e.g. 。、.,「」())

https://codepen.io/tats-u/pen/poQQVyR


CSS Text Module Level 4 (exists since Level 3):

https://drafts.csswg.org/css-text-4/#line-break-transform

See the EXAMPLE 19.
Comment 1 Tatsunori Uchino 2023-08-29 07:19:19 PDT
Created attachment 467480 [details]
Windows Playwright WebKit 1811 http://wyw.dcweb.cn/ff3_lb.html
Comment 2 Tatsunori Uchino 2023-08-29 07:21:54 PDT
Created attachment 467482 [details]
Firefox preview of https://codepen.io/tats-u/pen/YzdKKyN

No space inserted
Comment 3 Tatsunori Uchino 2023-08-29 07:24:47 PDT
Created attachment 467483 [details]
Firefox preview of http://wyw.dcweb.cn/ff3_lb.html
Comment 4 Fujii Hironori 2023-08-29 14:50:52 PDT
There are some tests in wpt/css/css-text/line-breaking.
https://wpt.fyi/results/css/css-text/line-breaking?label=experimental&label=master&aligned
Comment 5 Radar WebKit Bug Importer 2023-09-05 06:46:14 PDT
<rdar://problem/114978896>
Comment 6 Tatsunori Uchino 2023-09-08 23:47:44 PDT
The test cases beginning with segment-break-transformation- are related.
Comment 7 Tatsunori Uchino 2023-09-23 22:16:07 PDT
We have only to consider test cases starting with segment-break-transformation-rules-: https://wpt.fyi/results/css/css-text/line-breaking?label=master&label=experimental&aligned&q=segment-break-transformation-rules-