A curated roundup of recent CSS news and tricks covering: @keyframes animations accepting string names, colon vs equals in CSS style queries, declarative dialogs using invoker commands, middle-truncating text with CSS, managing color variables with relative color syntax, customizing lists with modern CSS (symbols(),

5m read timeFrom css-tricks.com
Post cover image
Table of contents
@keyframes animations can be strings: vs. = in style queriesDeclarative <dialog> s (and an updated .visually-hidden )How to truncate text from the middleHow to manage color variables with relative color syntaxHow to customize lists (the modern way)How to create typescales using :headingUna Kravets introduced border-shapemodern.css wants you to stop writing CSS like it’s 2015Kevin Powell also has some CSS snippets for youIn case you missed it

Sort: