| Summary: | Strings are not wrapped at zero width spaces when "word-break: keep-all" is set | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Mark Donnellon <mark+webkit> | ||||||
| Component: | Layout and Rendering | Assignee: | zalan <zalan> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | bfulgham, changseok, esprehn+autocc, ews-watchlist, glenn, karlcow, koivisto, kondapallykalyan, pdr, simon.fraser, webkit-bug-importer, zalan | ||||||
| Priority: | P2 | Keywords: | BrowserCompat, InRadar | ||||||
| Version: | Safari 16 | ||||||||
| Hardware: | Mac (Intel) | ||||||||
| OS: | macOS 13 | ||||||||
| URL: | https://codesandbox.io/s/wrapping-japanese-with-zwsp-f1nuic?file=/index.html | ||||||||
| Attachments: |
|
||||||||
|
Description
Mark Donnellon
2022-11-21 19:10:37 PST
My use case for this functionality was to allow my japanese strings to indicate appropriate spots to break lines without creating space between characters. Thank you for filing this bug report. It looks like zero-width space is not treated as a soft wrap opportunity when "word-break: keep-all" is set on the block container. Created attachment 463656 [details]
[fast-cq]Patch
Created attachment 463657 [details]
screen-shot of the test case with the patch applied
Committed 256937@main (d97fdbd62db3): <https://commits.webkit.org/256937@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 463656 [details]. Wow! I'm glad I could create a good bug report and it was addressed so quickly! (In reply to Mark Donnellon from comment #7) > Wow! I'm glad I could create a good bug report and it was addressed so > quickly! I wish all bug reports were like this :) Thanks again! |