wpt / css / css-gaps / animation / gap-decorations-inset-neutral-keyframe-002.html

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

/css/css-gaps/animation/gap-decorations-inset-neutral-keyframe-002.html

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>gap decorations column-rule-inset properties support neutral keyframe</title>
    <link rel="help" href="https://drafts.csswg.org/css-gaps-1/#inset">
    <meta name="assert" content="gap decorations column-rule-inset value list supports neutral keyframe.">
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
    <script src="/css/support/interpolation-testcommon.js"></script>
  </head>
  <body>
    <div id="target"></div>
    <script>
      test(() => {
        target.style.columnRuleStyle = 'solid';
        target.style.columnRuleInsetCapStart = '1px';
        target.style.columnRuleInsetCapEnd = '1px';
        target.style.columnRuleInsetJunctionStart = '1px';
        target.style.columnRuleInsetJunctionEnd = '1px';

        var animation = target.animate([{}, {columnRuleInsetCapStart: '11px'}], 1000);
        animation.pause();
        animation.currentTime = 500;
        assert_equals(getComputedStyle(target).columnRuleInsetCapStart, '6px');

        var animation2 = target.animate([{}, {columnRuleInsetCapEnd: '11px'}], 1000);
        animation2.pause();
        animation2.currentTime = 500;
        assert_equals(getComputedStyle(target).columnRuleInsetCapEnd, '6px');

        var animation3 = target.animate([{}, {columnRuleInsetJunctionStart: '11px'}], 1000);
        animation3.pause();
        animation3.currentTime = 500;
        assert_equals(getComputedStyle(target).columnRuleInsetJunctionStart, '6px');

        var animation4 = target.animate([{}, {columnRuleInsetJunctionEnd: '11px'}], 1000);
        animation4.pause();
        animation4.currentTime = 500;
        assert_equals(getComputedStyle(target).columnRuleInsetJunctionEnd, '6px');
      }, 'gap decorations column-rule-inset properties support neutral keyframe.');
    </script>
  </body>
</html>