Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Backdrop Filter should repaint when changed via script
https://bugs.webkit.org/show_bug.cgi?id=149319 rdar://problem/22749892 Reviewed by Tim Horton. Source/WebCore: When backdrop filters change, we need to trigger a recomposite, just as we do for filters. It's ok to re-use ContextSensitivePropertyFilter because adjustStyleDifference() does the right thing. Test: css3/filters/backdrop/dynamic-backdrop-filter-change.html * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::changeRequiresLayerRepaint): LayoutTests: * css3/filters/backdrop/dynamic-backdrop-filter-change-expected.html: Added. * css3/filters/backdrop/dynamic-backdrop-filter-change.html: Added. Canonical link: https://commits.webkit.org/174245@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@198963 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
103 additions
and 0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE html> | ||
|
||
<html> | ||
<head> | ||
<style> | ||
.background { | ||
height: 100px; | ||
width: 100px; | ||
padding: 50px; | ||
background-image: repeating-linear-gradient(black 0px, black 25px, white 25px, white 50px); | ||
border: 1px solid black; | ||
} | ||
|
||
#box { | ||
height: 100px; | ||
width: 100px; | ||
-webkit-backdrop-filter: blur(20px); | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="background"> | ||
<div id="box"> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,41 @@ | ||
<!DOCTYPE html> | ||
|
||
<html> | ||
<head> | ||
<style> | ||
.background { | ||
height: 100px; | ||
width: 100px; | ||
padding: 50px; | ||
background-image: repeating-linear-gradient(black 0px, black 25px, white 25px, white 50px); | ||
border: 1px solid black; | ||
} | ||
|
||
#box { | ||
height: 100px; | ||
width: 100px; | ||
-webkit-backdrop-filter: blur(0px); | ||
} | ||
|
||
#box.changed { | ||
-webkit-backdrop-filter: blur(20px); | ||
} | ||
</style> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.notifyDone(); | ||
|
||
window.addEventListener('load', function() { | ||
window.setTimeout(function() { | ||
document.getElementById('box').classList.add('changed'); | ||
}, 0); | ||
}, false); | ||
</script> | ||
</head> | ||
<body> | ||
<div class="background"> | ||
<div id="box"> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters