Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/filter-effects/filter-function/filter-function-repeating-linear-gradient.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<title>filter() function with repeating-linear-gradient</title>
<link rel="match" href="filter-function-repeating-linear-gradient-ref.html">
<style>
div {
background-image: filter(repeating-linear-gradient(red, red 10px, black 10px, black 20px), invert(1));
width: 400px;
height: 400px;
color: purple;
}
</style>
<div>This text should be purple on a background with a striped blue gradient.</div>
</html>