Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit 1719e8b

Browse files
authored
Merge pull request #12867 from frivoal/contain-anim
[css-contain] the contain property is not animatable
2 parents 9d5d9aa + 3f02360 commit 1719e8b

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>CSS Containment Test: contain is not animatable</title>
4+
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
5+
<link rel="help" href="https://drafts.csswg.org/css-contain/#contain-property">
6+
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
7+
<meta name=assert content="the contain property is not animatable">
8+
<style>
9+
div {
10+
border: 50px solid green;
11+
background: red;
12+
position: absolute; /* for shrinkwrap */
13+
contain: strict;
14+
15+
animation-duration: 1s;
16+
animation-name: bad;
17+
animation-play-state: paused;
18+
19+
font-size: 100px;
20+
}
21+
22+
@keyframes bad {
23+
from {
24+
contain: none;
25+
}
26+
}
27+
</style>
28+
29+
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
30+
<div>&nbsp;</div>
31+

0 commit comments

Comments
 (0)