blob: 7cc9a335035678f9cf9f0514eaf700198553f889 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<!doctype HTML>
<meta charset="utf8">
<title>CSS Content Visibility: content-visibility is not animatable.</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility">
<meta name="assert" content="content-visibility is not animatable">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
@keyframes cv {
from { content-visibility: auto }
to { content-visibility: hidden }
}
#container { animation: cv 1s; }
</style>
<div id=container></div>
<script>
test(() => {
const computedStyle = getComputedStyle(container);
assert_equals(computedStyle.contentVisibility, "visible");
}, "Content-visibility is not animatable");
</script>
|