Consider dropping opacity CSS style property while serializing for copy operation
Categories
(Core :: DOM: Serializers, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox161 | --- | fixed |
People
(Reporter: edgar, Assigned: edgar)
References
(Blocks 1 open bug)
Details
(Keywords: parity-chrome, parity-safari, webcompat:platform-bug)
User Story
user-impact-score:450 platform-scheduled:2026-11-30
Attachments
(1 external file)
This is filed from bug 2000366.
Test: https://bugzilla.mozilla.org/attachment.cgi?id=9529572
Chrome and Safari drops the opacity CSS style property while serializing for copy operation, which causes a webcompat issue on Twitter.
Updated•1 year ago
|
Updated•11 months ago
|
Updated•11 months ago
|
| Assignee | ||
Updated•8 months ago
|
Updated•5 months ago
|
| Assignee | ||
Comment 1•4 months ago
|
||
When copying, serialize the inline style attribute from its parsed declaration
block instead of emitting the original attribute value, and drop the opacity
property from it, this aligns with the behavior of other browsers.
Updated•2 months ago
|
Updated•1 month ago
|
Comment 3•1 month ago
|
||
Why only opacity and not e.g. visibility? If this is needed for compat can we add a wpt?
Backed out for causing build bustages
also this mochitest failure -> https://treeherder.mozilla.org/logviewer?job_id=599992686&repo=autoland&task=D-6252AlQqOl9iFahzOd7Q.0
| Assignee | ||
Comment 7•1 month ago
|
||
(In reply to Emilio Cobos Álvarez [:emilio] from comment #3)
Why only opacity and not e.g. visibility? If this is needed for compat can we add a wpt?
This is for the specific web compat report (bug 2000366), so I only handle the opacity and only inline css attribute here. I have added a wpt in the patch.
and this mochitest as well -> https://treeherder.mozilla.org/logviewer?job_id=600001841&repo=autoland&task=Ib4hAxmHS_eERotcguiqWw.0
Comment 10•22 days ago
|
||
| bugherder | ||
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/64765 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
Updated•16 days ago
|
Description
•