backdrop-filter causes blurring due to incorrect pixel snapping
Categories
(Core :: Graphics: WebRender, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr68 | --- | unaffected |
firefox71 | --- | wontfix |
firefox72 | --- | fixed |
People
(Reporter: cbrewster, Assigned: aosmond)
References
(Regression)
Details
(Keywords: regression)
Attachments
(5 files, 1 obsolete file)
Continuing from https://bugzilla.mozilla.org/show_bug.cgi?id=1178765#c82
According to Bx, in Firefox 71, backdrop-filter is applying the filter effect to other elements than just the backdrop.
Test case: https://jsfiddle.net/ziom1/kjw2690e/
I cannot reproduce this behavior, Bx can you provide a screenshot and the platform you are using?
I'm not a Bx, but I can provide a screenshot.
https://sun9-15.userapi.com/c851236/v851236476/1e6d3e/ZgZlKqrlv_s.jpg
Windows 10 1903 (build 18362.418, latest updates). FF 71.0b1 (Developer Edition)
DxDiag if needed: https://dk4000.pro/DxDiag.txt
"backdrop-filter: blur(10px)" only on dark rectangles, but as you can see "Some text" and buttons are also blurred. Dashed squares are over backdrop-filter layer and two (top left and top right) are also blurred.
"backdrop-filter: blur(10px)" turned off due to changing "transform" property of the lowest layer (pink background element). "Some text", buttons and dashed squares are perfectly sharp now.
Windows 10 v. 1903 (build 18362.418). Firefox Developer Edition 71.0b1 (64 bits). 16 GB RAM, powerful GPU.
Before Firefox 71.0 everything was good (sharp and valid behavior).
Reporter | ||
Comment 9•5 years ago
|
||
I now see the issue. The backdrop-filter is not being applied to everything. The blur to everything is happening due to incorrect pixel snapping, if you resize the iframe in the testcase you can see the issue with the snapping.
This looks similar to the issue I fixed in bug 1573914. The test case there has also regressed https://codepen.io/cgbrewster/pen/OJLyjGp
Comment 10•5 years ago
|
||
I can't see the backdrop effect at all on either testcase here on mac, I've confirmed that webrender is enabled. I've tried nightlies from shortly after the backdrop support landed and the bug fix mentioned landed, I've tried recent nightlies, I've tried in between nightlies. Is this expected or a bug that should also be filed?
(In reply to Connor Brewster [:cbrewster] from comment #9)
I now see the issue. The backdrop-filter is not being applied to everything. The blur to everything is happening due to incorrect pixel snapping, if you resize the iframe in the testcase you can see the issue with the snapping.
This looks similar to the issue I fixed in bug 1573914. The test case there has also regressed https://codepen.io/cgbrewster/pen/OJLyjGp
Andrew landed a bug change to pixel snapping recently, so perhaps it is that?
Reporter | ||
Comment 11•5 years ago
|
||
(In reply to Timothy Nikkel (:tnikkel) from comment #10)
I can't see the backdrop effect at all on either testcase here on mac, I've confirmed that webrender is enabled. I've tried nightlies from shortly after the backdrop support landed and the bug fix mentioned landed, I've tried recent nightlies, I've tried in between nightlies. Is this expected or a bug that should also be filed?
Did you make sure layout.css.backdrop-filter.enabled
is also enabled?
Comment 12•5 years ago
|
||
(In reply to Connor Brewster [:cbrewster] from comment #11)
Did you make sure
layout.css.backdrop-filter.enabled
is also enabled?
Ah, I did not know it was behind a pref, thanks.
Comment 13•5 years ago
|
||
regression range for https://codepen.io/cgbrewster/pen/OJLyjGp
-> bug 1574493
regression range for https://jsfiddle.net/ziom1/kjw2690e/
-> bug 1581934
Assignee | ||
Comment 14•5 years ago
|
||
Assignee | ||
Comment 15•5 years ago
|
||
Looks like I made it inconsistently calculate the estimated and precise local rects for a picture during frame building. I would think this would affect more than just backdrop filters.....
Assignee | ||
Updated•5 years ago
|
Comment 16•5 years ago
|
||
Comment 17•5 years ago
|
||
Backed out changeset a3a7133456b4 (Bug 1589198) for reftest at layout/reftests/svg/filters/filter-nested-filtering-02.svg.
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=276969763&repo=autoland&lineNumber=2968
Comment 18•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Comment 19•5 years ago
|
||
Comment 20•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Updated•3 years ago
|
Description
•