Bug 308854
| Summary: | Clipboard copy serialization does not preserve background-color for multi-paragraph selections | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | joanne_pan2 |
| Component: | New Bugs | Assignee: | joanne_pan2 |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
joanne_pan2
When copying multiple paragraphs from a page with a non-transparent background-color (e.g. dark mode sites), the serialized clipboard HTML does not include background-color on the <p> elements. For single-paragraph copies, background-color is preserved on the wrapping <span>. This inconsistency causes pasted content to lose its visual appearance. Chrome preserves background-color in both cases.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/171391621>
joanne_pan2
Pull request: https://github.com/WebKit/WebKit/pull/59764
joanne_pan2
Pull request: https://github.com/WebKit/WebKit/pull/59812
EWS
Committed 308655@main (0ab3bf3720f8): <https://commits.webkit.org/308655@main>
Reviewed commits have been landed. Closing PR #59812 and removing active labels.