progressiveenhancement.css
· 628 B · CSS
Неформатований
:root {
interpolate-size: allow-keywords;
}
.container {
scrollbar-gutter: stable;
transition-behavior: allow-discrete;
color-scheme: light dark;
overflow-x: clip;
}
h1 {
text-wrap: balance; /* pretty */
text-align-last: center;
}
.text-box-trim {
text-box-trim: both;
text-box-edge: cap alphabetic;
}
dialog[open]{
display: block; /* user agent style */
opacity: 1;
translate: 0 0;
@starting-style {
opacity: 0;
translate: 0 -25vh;
}
}
.alt {
content: url(./img) / "ALT";
}
/*
https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter
function round(), light-dark(),
*/
1 | :root { |
2 | interpolate-size: allow-keywords; |
3 | } |
4 | .container { |
5 | scrollbar-gutter: stable; |
6 | transition-behavior: allow-discrete; |
7 | color-scheme: light dark; |
8 | overflow-x: clip; |
9 | } |
10 | h1 { |
11 | text-wrap: balance; /* pretty */ |
12 | text-align-last: center; |
13 | } |
14 | .text-box-trim { |
15 | text-box-trim: both; |
16 | text-box-edge: cap alphabetic; |
17 | } |
18 | dialog[open]{ |
19 | display: block; /* user agent style */ |
20 | opacity: 1; |
21 | translate: 0 0; |
22 | |
23 | @starting-style { |
24 | opacity: 0; |
25 | translate: 0 -25vh; |
26 | } |
27 | } |
28 | .alt { |
29 | content: url(./img) / "ALT"; |
30 | } |
31 | /* |
32 | https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter |
33 | function round(), light-dark(), |
34 | */ |