Closed Bug 1327333 Opened 7 years ago Closed 6 years ago

Contenteditable element becomes 0px in height when I delete text with Ctrl+BackSpace (inconsistently)

Categories

(Core :: DOM: Editor, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1098151

People

(Reporter: arni2033, Unassigned)

Details

>>>
Scenario 1:
1. Open   data:text/html,<div contenteditable style="border:1px solid black">zxcv</div>
2. Click in the end of text in contenteditable to move caret after letter "f"
3. Press Ctrl+BackSpace


Scenario 2:
1. Open   data:text/html,<div contenteditable style="border:1px solid black">zxcv</div>
2. Click in the end of text in contenteditable to move caret after letter "f"
3. Press BackSpace 5 times
4. Press Ctrl+BackSpace


AR:
 Scenario 1 - contenteditable element becomes 0px in height; caret is displayed outside of the element
 Scenario 2 - Contenteditable element displays one empty line; caret is inside the element

ER:  Either X or Y.  X is better
 X) Scenario 1 - contenteditable element should be displayed in a normal way, i.e display 1 empty line
 Y) Scenario 2 - contenteditable element should become 0px in height, i.e. consistent behavior
No longer blocks: 1277113
Component: Untriaged → Editor
Product: Firefox → Core
Maybe, this is dup of bug 1098151
Priority: -- → P3
Depends on: 1098151
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
No longer depends on: 1098151
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.