-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Combining backface-visibility:hidden and backdrop-filter stops the ba…
…ckface from being hidden. https://bugs.webkit.org/show_bug.cgi?id=249952 <rdar://103940530> Reviewed by Simon Fraser. Structural layers created for backdrop-filter should still have the double sided property set. * LayoutTests/css3/filters/backdrop/backdrop-filter-with-backface-visibility-expected.html: Added. * LayoutTests/css3/filters/backdrop/backdrop-filter-with-backface-visibility.html: Added. * Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::updateBackfaceVisibility): Canonical link: https://commits.webkit.org/268427@main
- Loading branch information
1 parent
ad35360
commit 93bef58
Showing
3 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
LayoutTests/css3/filters/backdrop/backdrop-filter-with-backface-visibility-expected.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<title>This tests that an element with backface-visibility hidden does not show its backdrop filter.</title> | ||
<style> | ||
div { | ||
width: 200px; | ||
height: 200px; | ||
position: absolute; | ||
} | ||
|
||
#behind { | ||
background: green; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="behind"></div> | ||
</body> | ||
</html> |
36 changes: 36 additions & 0 deletions
36
LayoutTests/css3/filters/backdrop/backdrop-filter-with-backface-visibility.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<title>This tests that an element with backface-visibility hidden does not show its backdrop filter.</title> | ||
<style> | ||
div { | ||
width: 200px; | ||
height: 200px; | ||
position: absolute; | ||
} | ||
|
||
#behind { | ||
background: green; | ||
} | ||
|
||
#outer { | ||
transform-style: preserve-3d; | ||
transform: rotateX(180deg); | ||
} | ||
|
||
#inner { | ||
transform: rotateX(0deg); | ||
background: red; | ||
backface-visibility: hidden; | ||
-webkit-backdrop-filter: blur(1px); | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="behind"></div> | ||
<div id="outer"> | ||
<div id="inner"> | ||
</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