blob: 5a75dcbec50d7ed897f6691a566625e91cd09d62 [file] [log] [blame]
<!DOCTYPE HTML>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>
'use strict';
test(() => {
let CSSRegisterProperty = 2018; // From UseCounter.h
let isCounted = () => internals.isUseCounted(document, CSSRegisterProperty);
assert_false(isCounted(),
'should not be counted before registerProperty call');
CSS.registerProperty({name: '--name1', inherits: false});
assert_true(isCounted(),
'registerProperty call should be counted');
}, "registerProperty is use counted");
</script>