The speaker list for CSS Day 2025 is lookin’ mighty fine, tell you what. Event is scheduled June 5-6 and tickets are on sale.
Here’s that list: Adam Argyle, Ana Rodrigues, Brad & Ian Frost, Chris Coyier, Jane Ori, John Allsopp, and Miriam Suzanne
In this article, you’ll learn how to make a full-on star rating component out of nothing but a single input element and vanilla CSS.
Powered by
DigitalOcean
Now that we’re 5+ years into the details element, we know more about it than ever before. I thought I’d round that information up so it’s in one place I can reference in the future without having to search the site — and other sites — to find it.
The grain of truth was that even if you love your job, it can’t love you back. Yet what I’m hooked on isn’t one job, but the power of code and language.
The View Transitions API is more a set of features than it is about any one particular thing. And it gets complex fast. But in this post, we’ll cover a couple ways to dip your toes into the waters without having to dive in head-first.
I know, super niche, but it could be any loop, really. The challenge is having multiple tooltips on the same page that make use of the Popover API for toggling goodness and CSS Anchor Positioning for attaching a tooltip to its respective anchor element.
My thesis for today’s article offers further reassurance that inline conditionals are probably not the harbinger of the end of civilization: I reckon we can achieve the same functionality right now with style queries, which are gaining pretty good browser support.
The speaker list for CSS Day 2025 is lookin’ mighty fine, tell you what. Event is scheduled June 5-6 and tickets are on sale.
Here’s that list: Adam Argyle, Ana Rodrigues, Brad & Ian Frost, Chris Coyier, Jane Ori, John Allsopp, and Miriam Suzanne
#
Great little reminder from Kevin Powell that the :empty
pseudo-class considers comments as empty content, meaning a div
with nothing but a <!-- comment -->
still counts as :empty
.
#
The Apple team just dropped an interesting idea for masonry layout that I think will make a lot of folks shift their opinion on the debate: #11243
#
One day I’d love to publish a note in one of the CSS specs that’s like this one I found for interpolate-size
: NOTE: If we had a time machine, this property wouldn’t need to exist.
#
.element { color: hsl(90deg, 50%, 50%); }
.element { animation-timeline: --imageTimeline; }
h2::before { content: counter(my-counter, upper-roman) ". "; }
li::marker { content: counters(item, ".") ") "; }
ul { list-style: symbols(cyclic "🥬"); }
@counter-style apple-counter { ... }
@media screen and (prefers-reduced-motion: reduce) { }
@media screen and (min-width: 600px) { }
@starting-style {
opacity: 0;
}
@scope (.container) to (.article) { /* */ }
@position-try --my-position { position-area: top left; }
.target { top: anchor(--my-anchor bottom); }
html { color: light-dark(#000, #fff); }
@view-transition { navigation: auto; }