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, fujii.hironori, 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

Tatsunori Uchino
Reported 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.
Attachments
iOS Safari 15 preview of https://codepen.io/tats-u/pen/YzdKKyN (49.86 KB, image/png)
2023-08-29 06:45 PDT, Tatsunori Uchino
no flags
Windows Playwright WebKit 1811 http://wyw.dcweb.cn/ff3_lb.html (30.56 KB, image/png)
2023-08-29 07:19 PDT, Tatsunori Uchino
no flags
Firefox preview of https://codepen.io/tats-u/pen/YzdKKyN (5.74 KB, image/png)
2023-08-29 07:21 PDT, Tatsunori Uchino
no flags
Firefox preview of http://wyw.dcweb.cn/ff3_lb.html (73.68 KB, image/png)
2023-08-29 07:24 PDT, Tatsunori Uchino
no flags
Tatsunori Uchino
Comment 1 2023-08-29 07:19:19 PDT
Created attachment 467480 [details] Windows Playwright WebKit 1811 http://wyw.dcweb.cn/ff3_lb.html
Tatsunori Uchino
Comment 2 2023-08-29 07:21:54 PDT
Created attachment 467482 [details] Firefox preview of https://codepen.io/tats-u/pen/YzdKKyN No space inserted
Tatsunori Uchino
Comment 3 2023-08-29 07:24:47 PDT
Fujii Hironori
Comment 4 2023-08-29 14:50:52 PDT
Radar WebKit Bug Importer
Comment 5 2023-09-05 06:46:14 PDT
Tatsunori Uchino
Comment 6 2023-09-08 23:47:44 PDT
The test cases beginning with segment-break-transformation- are related.
Tatsunori Uchino
Comment 7 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-
Note You need to log in before you can comment on or make changes to this bug.