Add a test for <button> in contenteditable
Categories
(Core :: Layout, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox65 | --- | wontfix |
firefox66 | --- | unaffected |
firefox67 | --- | unaffected |
People
(Reporter: peterkwebb, Unassigned)
References
Details
(Keywords: regression)
Attachments
(1 file)
93 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763
Steps to reproduce:
View this HTML in Firefox (file attached):
<!DOCTYPE html>
<body>
<button contentEditable="true">Edit this</button>
</body>
</html
Actual results:
-
Move mouse cursor over middle of text and left click.
Observed: contenteditable text cursor (caret) always appears before first character. -
Press keyboard 'Delete' button.
Observed: no character deletion; text cursor moves by one character to the right. -
Move text cursor to just after "Edi" (using cursor key) and press 'Delete' keyboard button.
Observed: the space character after "Edit" is deleted.
Expected results:
-
Move mouse cursor over middle of text and left click.
Expected: contenteditable text cursor should appear close to mouse cursor position. -
Press keyboard 'Delete' button.
Expected: character to right of text cursor to be deleted. -
Move text cursor to just after "Edi" (using cursor key) and press 'Delete' keyboard button.
Expected: character to the right to be deleted (character "t").
Everything works as expected in Chrome.
Comment 1•5 years ago
|
||
Hi peterkwebb,
This issue seems to affect only the latest Firefox Release version 65.0.
Could not reproduce on latest Beta nor Nightly. Can you please confirm that too? Here are the download links for that: https://www.mozilla.org/en-US/firefox/channel/desktop/
Reporter | ||
Comment 2•5 years ago
|
||
Hi Timea,
Yes, I confirm bug is fixed in Nightly. I've not tested in Beta. I could not find this bug reported previously so I guess fixing some other bug has also fixed this bug. Thanks for checking it out.
Comment 3•5 years ago
|
||
This was fixed by bug 1518339, but I think it's a bit lucky that it did.
The reason it works in a very weird way before that patch is that button
has -moz-user-select: none
on the user-agent stylesheet. You can set it to -moz-user-select: text
and then it should work even on older Firefox versions.
I think the only reason it fixed it is because buttons have an anonymous box that does not get the -moz-user-select: none
style. We should add a test for this in this bug.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 4•5 years ago
|
||
Confirmed via mozregression that this was introduced in 65 via bug 1506547.
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•2 years ago
|
Description
•