[Webkit-unassigned] [Bug 186377] New: A node in contenteditable is removed when all characters in it are removed
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jun 6 19:08:55 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=186377
Bug ID: 186377
Summary: A node in contenteditable is removed when all
characters in it are removed
Product: WebKit
Version: WebKit Nightly Build
Hardware: All
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: HTML Editing
Assignee: webkit-unassigned at lists.webkit.org
Reporter: kei.itof at gmail.com
CC: wenson_hsieh at apple.com
Created attachment 342105
--> https://bugs.webkit.org/attachment.cgi?id=342105&action=review
Steps to Reproduce
Summary:
A node in contenteditable is removed when all characters in it are removed by backspace key or delete key etc. if the "position" of the parent node is "relative".
Steps to Reproduce:
# 1. Save the code below as page.html.
<!doctype html>
<meta charset="utf-8">
<style>
.editable {
margin: 20px;
padding: 20px;
background-color: #fcc;
}
.editable div {
padding: 20px;
background-color: #ccf;
}
.editable2 div {
position: relative;
}
</style>
<div contenteditable="true" class="editable editable1">
<div>ABC</div>
</div>
<div contenteditable="true" class="editable editable2">
<div>DEF</div>
</div>
# 2. Open Safari
# 3. Drag and drop the page.html onto the address bar
# 4. Click the right of "ABC" and press Backspace 3 times
# 5. Click the right of "DEF" and press Backspace 3 times
You can try it on this page: https://codepen.io/wemotter/pen/jxegxw
Expected Results:
"ABC" and "DEF" are removed and the blue areas remains.
Actual Results:
"ABC" and "DEF" are removed and the first blue area remains but the second is removed.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180607/73b386c1/attachment-0001.html>
More information about the webkit-unassigned
mailing list