Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<head>
<title>CSS Backdrop Filters: Grayscale(100%) with no background</title>
<link rel="author" title="Jay Dasika" href="mailto:jaydasika@chromium.org">
<link rel="match" href="reference/backdrop-filters-grayscale-003-ref.html">
<meta name="assert" content="Check that backdrop-filter works with grayscale(100%) and no background."/>
<style>
div {
width: 100px;
height: 100px;
position: absolute;
}
.background_object {
left: 10px;
top: 10px;
background: orange;
}
.grayscale_backdrop {
left: 60px;
top: 60px;
backdrop-filter: grayscale(100%);
}
</style>
</head>
<body>
<div class="background_object"></div>
<div class="grayscale_backdrop"></div>
</body>
</html>