[wpt-sync] Sync PR 54492 - [Editing] Fix removeFormat incorrectly preserving background-color on child elements
Categories
(Core :: DOM: Editor, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox144 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
|
276.39 KB,
text/plain
|
Details |
Sync web-platform-tests PR 54492 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/54492
Details from upstream follow.
Pranav Modi <pranavmodi@microsoft.com> wrote:
[Editing] Fix removeFormat incorrectly preserving background-color on child elements
When removeFormat was applied to styled elements like bold, the
background-color was being pushed down to child elements instead of
being removed completely. This CL fixes it by filtering
style_to_push_down to exclude CSS properties that are targeted for
removal by the removeFormat operation.Bug: 41438799
Change-Id: Idc4a9b091769dbd6c401b943a33bfb9433795f7a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6865693
Reviewed-by: Sambamurthy Bandaru \<sambamurthy.bandaru@microsoft.com>
Commit-Queue: Pranav Modi \<pranavmodi@microsoft.com>
Reviewed-by: Kent Tamura \<tkent@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1505702}
| Assignee | ||
Updated•7 months ago
|
| Assignee | ||
Comment 1•7 months ago
|
||
| Assignee | ||
Comment 2•7 months ago
|
||
Description
•