Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<title>Container Queries - The container longhands are not animatable</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/cq-testcommon.js"></script>
<style>
@keyframes anim {
from {
--ref:PASS;
container-name: FAIL;
container-type: size;
}
to {
--ref:PASS;
container-name: FAIL;
container-type: size;
}
}
#container {
--ref:FAIL;
container-name: PASS;
container-type: inline-size;
animation: anim 1s linear paused;
}
</style>
<div id=container>
</div>
<script>
setup(() => assert_implements_container_queries());
test(() => {
assert_equals(getComputedStyle(container).getPropertyValue('--ref'), 'PASS');
}, 'Reference variable is applied');
test(() => {
assert_equals(getComputedStyle(container).getPropertyValue('container-name'), 'PASS');
}, 'container-name is not animatable');
test(() => {
assert_equals(getComputedStyle(container).getPropertyValue('container-type'), 'inline-size');
}, 'container-type is not animatable');
</script>