Bug 123872
| Summary: | Background color applied on a selection of text is lost when the selection is deleted | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
| Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | darin, enrica, vani.hegde |
| Priority: | P2 | Keywords: | BlinkMergeCandidate |
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Ryosuke Niwa
Consider merging https://chromium.googlesource.com/chromium/blink/+/931167c838db9009745530c4bd55984c4a631800
While deleting a selection, only inheritable style properties were
saved. Since background color is considered as noninheritable style
property, it was not being saved and hence was lost. Because of this
background color set on a selection of text was lost when the selection
was deleted and if new text is inserted after this it would not have
the background color set.
Before deleting a selection we should save all style properties applied
on that particular selection. Modified accordingly.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Vani Hegde
We already have a bug https://bugs.webkit.org/show_bug.cgi?id=117337 for this.
Uploaded a new patch in 117337.
Ryosuke Niwa
(In reply to comment #1)
> We already have a bug https://bugs.webkit.org/show_bug.cgi?id=117337 for this.
> Uploaded a new patch in 117337.
Thanks! I was looking for that bug.
*** This bug has been marked as a duplicate of bug 117337 ***