progressiveenhancement.css
· 577 B · CSS
原始文件
:root {
interpolate-size: allow-keywords;
}
.container {
scrollbar-gutter: stable;
transition-behavior: allow-discrete;
color-scheme: light dark;
}
h1 {
text-wrap: balance; /* pretty */
}
.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 | } |
| 9 | h1 { |
| 10 | text-wrap: balance; /* pretty */ |
| 11 | } |
| 12 | .text-box-trim { |
| 13 | text-box-trim: both; |
| 14 | text-box-edge: cap alphabetic; |
| 15 | } |
| 16 | dialog[open]{ |
| 17 | display: block; /* user agent style */ |
| 18 | opacity: 1; |
| 19 | translate: 0 0; |
| 20 | |
| 21 | @starting-style { |
| 22 | opacity: 0; |
| 23 | translate: 0 -25vh; |
| 24 | } |
| 25 | } |
| 26 | .alt { |
| 27 | content: url(./img) / "ALT"; |
| 28 | } |
| 29 | /* |
| 30 | https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter |
| 31 | function round(), light-dark(), |
| 32 | */ |