https://github.com/web-platform-tests/wpt
Raw File
Tip revision: e15d2c1a2afc866b09d31558d1af451227be2dca authored by Raymond Toy on 20 September 2018, 21:42:05 UTC
Sub-sample accurate start for ABSN
Tip revision: e15d2c1
css-filters-animation-invert.html
<!DOCTYPE html>
<html>
<head>
    <title>CSS Filters Animation: Invert</title>
    <link rel="author" title="Gunther Brunner" href="mailto:takeshimiya@gmail.com">
    <link rel="reviewer" title="Dirk Schulze" href="mailto:dschulze@adobe.com">
    <link rel="reviewer" title="Rebecca Hauck" href="mailto:rhauck@adobe.com">
    <link rel="help" href="http://www.w3.org/TR/filter-effects-1/#FilterProperty">
    <link rel="help" href="http://www.w3.org/TR/filter-effects-1/#funcdef-invert">
    <link rel="help" href="http://www.w3.org/TR/css3-animations/#animations">
    <link rel="match" href="css-filters-animation-invert-ref.html">
    <meta name="assert" content="The black square should be gray">
    <style type="text/css">
        @keyframes animate {
            0% {
                filter: invert(100%);
            }
            100% {
                filter: none;
            }
        }

        .square {
            width: 100px;
            height: 100px;
            background: black;
            animation-name: animate;
            animation-play-state: paused;
            animation-delay: -2s;
            animation-duration: 4s;
            animation-timing-function: linear;
        }
    </style>
</head>
<body>
<p>You should see a gray rectangle. Neither black nor white.</p>
<div class="square"></div>
</body>
</html>
back to top