-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcss-current-v1.15.html
More file actions
66 lines (59 loc) · 1.73 KB
/
Copy pathcss-current-v1.15.html
File metadata and controls
66 lines (59 loc) · 1.73 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!doctype html>
<html dir="rtl" lang="ar">
<head>
<title>واجهة CSS حالية</title>
<style>
@position-try --اسفل {
position-area: bottom;
margin-block-start: 0.75rem;
}
:root {
timeline-scope: --قراءة;
}
button.مفتاح {
anchor-name: --مفتاح;
anchor-scope: all;
view-transition-name: بطاقة;
}
section.لوحة {
position: absolute;
position-anchor: --مفتاح;
position-area: top right;
position-try-fallbacks: --اسفل flip-block;
position-try-order: most-width;
position-visibility: anchors-visible no-overflow;
align-self: anchor-center;
inline-size: anchor-size(width);
top: anchor(bottom);
}
article.قراءة {
scroll-timeline: --قراءة block;
view-timeline: --دخول block auto;
}
section.بطاقة {
animation-timeline: --قراءة;
animation-range: entry 0% exit 100%;
animation-range-start: entry-crossing 0%;
animation-range-end: exit-crossing 100%;
animation-composition: add;
& > button:nth-last-child(1 of .أمر) {
color: red;
}
}
:root::view-transition-old(بطاقة),
:root::view-transition-new(بطاقة) {
animation-duration: 250ms;
}
</style>
</head>
<body>
<main>
<article class="قراءة">
<section class="بطاقة">
<button class="مفتاح أمر" type="button">فتح التلميح</button>
<section class="لوحة">تلميح مثبت بالمرساة</section>
</section>
</article>
</main>
</body>
</html>