Bug 175633 - Stroke lost in editing operations because editingProperties doesn’t include stroke-width and stroke-color
Summary: Stroke lost in editing operations because editingProperties doesn’t include s...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-16 11:29 PDT by mitz
Modified: 2017-08-16 11:33 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2017-08-16 11:29:58 PDT
To reproduce:
<div contenteditable><span style="stroke-color: blue; stroke-width: 1px">Place the insertion point here, then press Return, then Backspace</span></div>

Note that after hitting backspace, the end of the sentence is missing the stroke. Note that this doesn’t happen when using the -webkit-prefixed properties:

<div contenteditable><span style="-webkit-text-stroke-color: lightblue; -webkit-text-stroke-width: 1px">Place the insertion point here, then press Return, then Backspace</span></div>
Comment 1 Ryosuke Niwa 2017-08-16 11:33:44 PDT
Ugh... we need to update editingProperties in EditingStyle.cpp. I really wish we didn't have a hard coded list of properties.