1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00

Base: Add example backdrop-filter using saturate()

This commit is contained in:
MacDue 2022-10-03 20:48:58 +01:00 committed by Sam Atkins
parent 60cc96d243
commit 5a832c0326
Notes: sideshowbarker 2024-07-17 06:10:59 +09:00

View file

@ -72,6 +72,10 @@
.hue-rotate {
backdrop-filter: hue-rotate(60deg);
}
.saturate {
backdrop-filter: saturate(4);
}
</style>
</head>
<body>
@ -111,6 +115,10 @@
<div class="backdrop-box hue-rotate">
</div>
</div>
<div class="image-box">
<div class="backdrop-box saturate">
</div>
</div>
<script>
const boxes = document.querySelectorAll(".backdrop-box");
const filterMap = {};