blob: 0c4c1b04e8758595f5866f69cb470a3714330520 [file] [log] [blame]
<!DOCTYPE html>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<div id="target"></div>
<script>
'use strict';
test(() => {
var WebAnimationHyphenatedProperty = 1243; // From UseCounter.h
var target = document.getElementById('target');
var timing = {fill: 'both'};
target.animate([{'borderRadius': "1em"}], timing);
assert_false(internals.isUseCounted(document, WebAnimationHyphenatedProperty));
target.animate([{'border-radius': "1em"}], timing);
assert_true(internals.isUseCounted(document, WebAnimationHyphenatedProperty));
}, 'Calling element.animate() with hyphenated property is use counted.');
</script>