Created attachment 380688 [details] test case Open the attached test case. Result: A blurred green rectangle. Expected: A solid green rectangle. In the test case, there is an 800x800 <div> element filled with "background-color: green;". An SVG filter applied to this <div> with the effect: "<fegaussianblur stdDeviation="100">". This filtered element is transformed by: "translate(-300px, -300px)" and it is placed inside another container 100x100 <div> whose "overflow: hidden;". So the container element shows only the rectangle { location = { 300, 300 }, size = { 100, 100 } } of the filtered element. This means none of the filter blurred pixels should be shown.
Created attachment 380693 [details] Patch
<rdar://problem/55791120>
Created attachment 380761 [details] Patch
Created attachment 380763 [details] Patch
Comment on attachment 380763 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=380763&action=review > Source/WebCore/rendering/CSSFilter.cpp:-380 > - rectForRepaint.move(-m_outsets.right(), -m_outsets.bottom()); I think the old calculation is wrong. I could not understand what "going backwards" means here and how this is translated to offsetting the rectangle by (-right, -bottom) instead of (-left, -top).
Created attachment 380929 [details] Patch
Comment on attachment 380929 [details] Patch Clearing flags on attachment: 380929 Committed r251119: <https://trac.webkit.org/changeset/251119>
All reviewed patches have been landed. Closing bug.
The new test css3/filters/svg-blur-filter-clipped.html added in https://trac.webkit.org/changeset/251119/webkit is failing on iOS History: https://results.webkit.org/?suite=layout-tests&test=css3%2Ffilters%2Fsvg-blur-filter-clipped.html Diff: https://build.webkit.org/results/Apple%20iOS%2013%20Simulator%20Release%20WK2%20(Tests)/r251149%20(545)/css3/filters/svg-blur-filter-clipped-diffs.html
(In reply to Truitt Savell from comment #9) > The new test css3/filters/svg-blur-filter-clipped.html added in > https://trac.webkit.org/changeset/251119/webkit > > is failing on iOS > > History: > https://results.webkit.org/?suite=layout-tests&test=css3%2Ffilters%2Fsvg- > blur-filter-clipped.html > > Diff: > https://build.webkit.org/results/ > Apple%20iOS%2013%20Simulator%20Release%20WK2%20(Tests)/r251149%20(545)/css3/ > filters/svg-blur-filter-clipped-diffs.html But it was skipped in LayoutTests/platform/iOS/TestExpectations in the r251119. So how can it fail?
(In reply to Said Abou-Hallawa from comment #10) > (In reply to Truitt Savell from comment #9) > > The new test css3/filters/svg-blur-filter-clipped.html added in > > https://trac.webkit.org/changeset/251119/webkit > > > > is failing on iOS > > > > History: > > https://results.webkit.org/?suite=layout-tests&test=css3%2Ffilters%2Fsvg- > > blur-filter-clipped.html > > > > Diff: > > https://build.webkit.org/results/ > > Apple%20iOS%2013%20Simulator%20Release%20WK2%20(Tests)/r251149%20(545)/css3/ > > filters/svg-blur-filter-clipped-diffs.html > > But it was skipped in LayoutTests/platform/iOS/TestExpectations in the > r251119. So how can it fail? The test expectation was defined as "Failure" which means it is expecting a TEXT failure. Since this test produces an image, the expectation needs to be "ImageOnlyFailure". I've corrected the TestExpectation in r251189.
*** Bug 166739 has been marked as a duplicate of this bug. ***