Bug 268971

Summary: WORD JOINER (WJ) U+2060 or ZERO WIDTH JOINER (ZWJ) with an image inside a nowrap section are breaking
Product: WebKit Reporter: Karl Dubost <karlcow>
Component: TextAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: fantasai.bugs, mmaxfield, webkit-bug-importer, webkit
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
URL: https://github.com/webcompat/web-bugs/issues/132697
See Also: https://bugs.webkit.org/show_bug.cgi?id=175778
Attachments:
Description Flags
testcase
none
rendering in safari, firefox, chrome none

Karl Dubost
Reported 2024-02-08 01:08:16 PST
Created attachment 469767 [details] testcase U+2060 WORD JOINER or U+200D ZERO WIDTH JOINER Steps to reproduce: 0. With STP 188 1. Go to https://codesandbox.io/p/sandbox/atomic-inline-wrapping-s8pj2y?file=%2Findex.html%3A26%2C1-27%2C1 Expected: The second long word should stay on the same line than the image. Actual: the second long word goes on a new line below the image. <div style="outline: 1px solid red; width: 250px">firstlongword<span style="white-space: nowrap"><img src="https://placekitten.com/100/100">&#x2060;</span>secondlongword</div> See Also https://codepen.io/webcompat/pen/poYOJdj
Attachments
testcase (697 bytes, text/html)
2024-02-08 01:08 PST, Karl Dubost
no flags
rendering in safari, firefox, chrome (755.44 KB, image/png)
2024-02-08 01:08 PST, Karl Dubost
no flags
Radar WebKit Bug Importer
Comment 1 2024-02-08 01:08:24 PST
Karl Dubost
Comment 2 2024-02-08 01:08:48 PST
Created attachment 469768 [details] rendering in safari, firefox, chrome
Karl Dubost
Comment 3 2024-02-08 01:09:26 PST
Tested in Safari Technology Preview 188 19619.1.2.1.1 Firefox Nightly 124.0a1 12424.2.7 Google Chrome Canary 123.0.6287.0 6287.0
Karl Dubost
Comment 4 2024-03-17 18:16:57 PDT
This seems to have been fixed. I can't reproduce in STP 190. https://codepen.io/webcompat/pen/jORVdmJ
Note You need to log in before you can comment on or make changes to this bug.