Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!--
Any copyright is dedicated to the Public Domain.
-->
<!DOCTYPE html>
<html>
<head>
<title>CSS Filters Chains: Use a Filtered Element as the Background of Another Element</title>
<style type="text/css">
#src {
filter: hue-rotate(90deg) saturate(10);
background-color: #f00;
width: 100px;
height: 100px;
}
#dest {
margin-top: 10px;
background: -moz-element(#src);
width: 200px;
height: 200px;
}
</style>
</head>
<body>
<p>You should see a small green square followed by a large green square.</p>
<div id="src"></div>
<div id="dest"></div>
</body>
</html>