wpt / css / filter-effects / filter-function / filter-function-conic-gradient.html

Status: FAIL | Duration: 28ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/filter-effects/filter-function/filter-function-conic-gradient.html

<!DOCTYPE html>
<html>
<title>filter() function with conic-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-conic-gradient-ref.html">
<style>
    div {
        background-image: filter(conic-gradient(red, orange), invert(1));
        width: 400px;
        height: 400px;
        color: purple;
    }
</style>
<div>This text should be purple on a background with a light blue gradient.</div>
</html>

/css/filter-effects/filter-function/filter-function-conic-gradient-ref.html

<!DOCTYPE html>
<html>
<style>
    #container {
        position: relative;
        width: 400px;
        height: 400px;
    }
    #container > div {
        position: absolute;
        width: 100%;
        height: 100%;
    }
    #background {
        background-image: conic-gradient(red, orange);
        filter: invert(1);
    }
    #foreground {
        color: purple;
    }
</style>
<div id="container">
    <div id="background"></div>
    <div id="foreground">This text should be purple on a background with a light blue gradient.</div>
</div>
</html>