summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/filter-effects/filter-function/filter-function-repeating-linear-gradient.html
blob: dc81e0995bb125b9e84b09974fd7ec48d96e6266 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<html>
<title>filter() function with repeating-linear-gradient</title>
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#FilterCSSImageValue">
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m">
<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>