content-editable divs set with white-space: normal lose there spaces when typing the next charactor
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
People
(Reporter: marc.henness, Unassigned)
Details
(Keywords: testcase-wanted)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:123.0) Gecko/20100101 Firefox/123.0
Steps to reproduce:
- create a div
- set the div's contentEditable property to true.
- set the div's "white-space" style attribute to normal
- Type: a a
Actual results:
in version 113.0.2 of firefox the div would display "a a"
in version 123.0.1 of firefox the div displays "aa" with no space. (note when "a " is typed the space shows. It gets removed after typing the second a)
Expected results:
it should display "a a" when white-space style is normal.
This can kind of be mediated by setting "white-space" style attribute to pre-wrap, but pre-wrap is supposed to keep all white spaces rather than reduce the white spaces to a single white space like normal should do.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Layout: Text and Fonts' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•2 years ago
|
||
I tried to reproduce this, but I don't seem to be experiencing the problem described. Could you please attach a minimal but complete example (a simple HTML file with the necessary styles, etc) here, so I can see what I'm missing? Thanks!
| Reporter | ||
Comment 3•2 years ago
|
||
Thank you, I just gave the very simple example because I wanted to quickly get it reported as others might have the issue. I was able to work around it so it is not high priority for me. The divs I work with are deep inside a framework that applies a lot of stuff to them including possibly keyUp and keyDown handlers (which should pass through still and didn't effect it in version 113). However my point is that if it is not simply reproducible I do not know exactly the code to write to reproduce it, I just know that it is reproachable so you might want to be aware of it. If you can guide me on how to get you a dump of the object to look at I'd gladly do so.
Comment 4•2 years ago
|
||
Ah, I see. Actually, this reminds me of bug 1881906, which was recently fixed. Could you try with Firefox Nightly (see https://www.mozilla.org/en-US/firefox/channel/desktop/#nightly) or a recent Beta version (124.0b9 or later) and let us know if the issue still occurs there? Thanks again!
Updated•2 years ago
|
Updated•2 years ago
|
Comment 5•1 year ago
|
||
A needinfo is requested from the reporter, however, the reporter is inactive on Bugzilla. Given that the bug is still UNCONFIRMED, closing the bug as incomplete.
For more information, please visit BugBot documentation.
Description
•