Opacity CSS property does not affect <tspan> elements
Categories
(Core :: SVG, defect)
Tracking
()
People
(Reporter: taylorgratzer, Assigned: longsonr)
References
(Regression)
Details
(Keywords: regression)
Attachments
(3 files)
Steps to reproduce:
Create a <tspan> and apply a style with any value less than 1 for the CSS "opacity" property.
See: https://codepen.io/Nickardson/pen/MWEdmpr
Actual results:
The tspan will remain fully opaque, even with values of 0 opacity.
Expected results:
The tspan should become transparent.
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Web Painting' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Comment 2•3 years ago
|
||
I can reproduce the issue in Nightly98.0a1 but not in Firefox24.0
Regression window:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=cbb24a4a96af&tochange=d7553251cf43
Regressed by Bug 839955
Updated•3 years ago
|
Comment 3•3 years ago
|
||
Thanks for the bug report!
Side note: it does look like we honor fill-opacity
and stroke-opacity
on tspan elements, as shown in the lower two lines in this testcase. It's just opacity
that we seem to ignore.
Comment 4•2 years ago
|
||
Although it is technically a regression, that's a regression from Firefox 25 which was almost 10 years ago. I am removing the regression keyword as this bug doesn't need to be triaged during our regression triage meeting every week.
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 5•1 year ago
|
||
Note we pass https://wpt.fyi/results/svg/text/reftests/tspan-opacity-mixed-direction.svg?label=experimental&label=master&aligned because we also misrender the reference case.
Assignee | ||
Comment 6•1 year ago
|
||
Updated•1 year ago
|
Assignee | ||
Comment 7•1 year ago
|
||
Pushed by longsonr@gmail.com: https://hg.mozilla.org/integration/autoland/rev/a846d1b82b98 Opacity CSS property should apply to all children of text elements r=jfkthame
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/39468 for changes under testing/web-platform/tests
Comment 10•1 year ago
|
||
Backed out for failures on opacity.svg
- backout: https://hg.mozilla.org/integration/autoland/rev/db64f743c0f0a1a66f19254aaec19d10e49382cd
- push: https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&selectedTaskRun=CXx-nKABS2qpyXRUwJQnzA.0&resultStatus=pending%2Crunning%2Csuccess%2Ctestfailed%2Cbusted%2Cexception%2Crunnable&revision=a846d1b82b988ef7339ed9eeabec121b535109df
- failure log: https://treeherder.mozilla.org/logviewer?job_id=411939935&repo=autoland&lineNumber=38909
[task 2023-04-11T06:36:48.423Z] 06:36:48 INFO - TEST-START | /svg/text/reftests/opacity.svg
[task 2023-04-11T06:36:48.425Z] 06:36:48 INFO - PID 2846 | 1681195008424 Marionette INFO Testing http://web-platform.test:8000/svg/text/reftests/opacity.svg == http://web-platform.test:8000/svg/text/reftests/opacity-ref.svg
[task 2023-04-11T06:36:48.431Z] 06:36:48 INFO - PID 2846 | [Child 2862, Main Thread] WARNING: JSWindowActorChild::SendRawMessage (MarionetteReftest, MarionetteReftestParent:reftestWait) not sent: !CanSend() || !mManager || !mManager->CanSend(): file /builds/worker/checkouts/gecko/dom/ipc/jsactor/JSWindowActorChild.cpp:57
[task 2023-04-11T06:36:48.495Z] 06:36:48 INFO - PID 2846 | [Child 2862, Main Thread] WARNING: JSWindowActorChild::SendRawMessage (MarionetteReftest, MarionetteReftestParent:reftestWait) not sent: !CanSend() || !mManager || !mManager->CanSend(): file /builds/worker/checkouts/gecko/dom/ipc/jsactor/JSWindowActorChild.cpp:57
[task 2023-04-11T06:36:48.539Z] 06:36:48 INFO - PID 2846 | 1681195008538 Marionette INFO No differences allowed
[task 2023-04-11T06:36:48.627Z] 06:36:48 INFO - TEST-UNEXPECTED-FAIL | /svg/text/reftests/opacity.svg | Testing http://web-platform.test:8000/svg/text/reftests/opacity.svg == http://web-platform.test:8000/svg/text/reftests/opacity-ref.svg
[task 2023-04-11T06:36:48.627Z] 06:36:48 INFO - Found 266 pixels different, maximum difference per channel 1
Upstream PR was closed without merging
Assignee | ||
Comment 12•1 year ago
|
||
Comment 13•1 year ago
|
||
Pushed by longsonr@gmail.com: https://hg.mozilla.org/integration/autoland/rev/26eed7e9843b Opacity CSS property should apply to all children of text elements r=jfkthame
Comment 14•1 year ago
|
||
bugherder |
Upstream PR merged by moz-wptsync-bot
Updated•1 year ago
|
Updated•1 year ago
|
Description
•