Created attachment 434631 [details] A sample showing the white-space bug Unlike Firefox browser, all the Webkit browsers seem to eat-up white-space in span tag if it carries a inline-block style. <div><span>Hello</span><span style="display:inline-block; width:10px;"> </span><span>World!</span></div>
The white-space shows-up fine in the browser view, but disappears from the clipboard selection and from the innerText property, whereas it shows-up fine in innerHTML property.
<rdar://problem/81618283>
Safari Tech Preview: HelloWorld! (Release 196 (Safari 17.4, WebKit 619.1.16)) Chrome Canary: HelloWorld! (Version 127.0.6522.0) Firefox Nightly : Hello World! (128.0a1 (2024-06-05))