A subjective high level review of interesting and upcoming things in CSS
https://florian.rivoal.net/talks/css-2019-tour/
@media (width < 300px) { … } @else { … }
@switch { media((width < 300px)) { … } default { … } }
:focus-visible
scrollbar-color
scrollbar-width
::selection
::spelling-error
::grammar-error
appearance
caret-shape
caret-animation
line-clamp
aspect-ratio
article { continue: fragments; } article:nth-fragment(1) { max-lines: 3; font-size: 1.5em; } article:nth-fragment(2) { columns: 3; }
line-sizing
leading-trim
background: conic-gradient(at 69% 11%, pink, cyan 33%, blue, pink 80%);
--circle-color: green; background: paint(circles), conic-gradient(at 69% 11%, pink, blue 33%, cyan, pink 80%);
@media (inverted-colors: none | inverted) {…} @media (prefers-reduced-motion: no-preference | reduce) {…} @media (prefers-reduced-transparency: no-preference | reduce) {…} @media (prefers-contrast: no-preference | high | low) {…} @media (prefers-color-scheme: no-preference | light | dark) {…}