RESOLVED DUPLICATE of bug 156657 181719
Trailing space disappears when it occurs at the end of an long line
https://bugs.webkit.org/show_bug.cgi?id=181719
Summary Trailing space disappears when it occurs at the end of an long line
Mihai Parparita
Reported 2018-01-16 22:30:24 PST
Created attachment 331468 [details] Test case See attached test case (also available at http://persistent.info/webkit/test-cases/content-editable-wrap-trailing-space.html) The space disappears when the current line is as wide as the editable area, and the space causes it to start wrapping. The "word-wrap: break-word;" property for all contentEditable elements appears to be implicated, overriding it to "word-wrap: normal" causes the bug to go away. Reproduced in Safari 11.0.2 on High Sierra and an archive build at r227011 (the oldest builds I could find also had the bug, so this is not a recent regression).
Attachments
Test case (1.37 KB, text/html)
2018-01-16 22:30 PST, Mihai Parparita
no flags
Ahmad Saleem
Comment 1 2022-07-26 14:56:59 PDT
I am able to reproduce this bug in Safari 15.6 on macOS 12.5 using attached test case and it shows following: beforeinput content: 'aaaaiiiiaaaaaaaaaaaaaaaaaaaaaaaaaaax' input content: 'aaaaiiiiaaaaaaaaaaaaaaaaaaaaaaaaaaax<nbsp>' beforeinput content: 'aaaaiiiiaaaaaaaaaaaaaaaaaaaaaaaaaaax<nbsp>' input content: 'aaaaiiiiaaaaaaaaaaaaaaaaaaaaaaaaaaaxa' <<<<< (NOT SPACE) *** Firefox Nightly 104 **** beforeinput content: 'aaaaiiiiaaaaaaaaaaaaaaaaaaaaaaaaaaax' input content: 'aaaaiiiiaaaaaaaaaaaaaaaaaaaaaaaaaaax ' beforeinput content: 'aaaaiiiiaaaaaaaaaaaaaaaaaaaaaaaaaaax ' input content: 'aaaaiiiiaaaaaaaaaaaaaaaaaaaaaaaaaaax a' <<< SPACE before 'a' *** Chrome Canary 106 *** beforeinput content: 'aaaaiiiiaaaaaaaaaaaaaaaaaaaaaaaaaaax' input content: 'aaaaiiiiaaaaaaaaaaaaaaaaaaaaaaaaaaax<nbsp>' beforeinput content: 'aaaaiiiiaaaaaaaaaaaaaaaaaaaaaaaaaaax<nbsp>' input content: 'aaaaiiiiaaaaaaaaaaaaaaaaaaaaaaaaaaax a' <<<< SPACE before 'a' ________ Let me know if I am testing incorrectly. Thanks!
Radar WebKit Bug Importer
Comment 2 2022-07-26 15:00:21 PDT
Alexey Proskuryakov
Comment 3 2022-07-27 19:18:28 PDT
*** This bug has been marked as a duplicate of bug 156657 ***
Note You need to log in before you can comment on or make changes to this bug.