blob: 3249a44cbf97477d9735ebc316a0dfb1fd36f6c0 [file] [log] [blame]
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
.parent {
--ident: parent;
}
.target {
--ident: underlying;
}
</style>
<body>
<script src="../interpolation/resources/interpolation-test.js"></script>
<script>
CSS.registerProperty({
name: '--ident',
syntax: '<custom-ident>',
initialValue: 'initial-value',
inherits: false,
});
assertNoInterpolation({
property: '--ident',
from: neutralKeyframe,
to: 'hello',
});
assertNoInterpolation({
property: '--ident',
from: 'initial',
to: 'hello',
});
assertNoInterpolation({
property: '--ident',
from: 'inherit',
to: 'hello',
});
assertNoInterpolation({
property: '--ident',
from: 'unset',
to: 'hello',
});
assertNoInterpolation({
property: '--ident',
from: 'apple',
to: 'banana',
});
</script>
</body>