What’s !important #13: @function, alpha(), CSS Wordle, and More
CSS functions, the Jane Ori expertly explained how CSS functions work. In addition, Declan Chidlow wrote our Speaking of functions, the Well, this comment from Jason Leo sums it up. Firstly, it means that we won’t need to hard-code color values when we already have CSS variables. For years I’ve circumvented this by only storing the actual values in CSS variables, but having to wrap them in the color function every single time is reallymonotonous: But it’s better than this (in my opinion): Secondly, the color format is actually irrelevant in this context, so Credit to Adam Argyle for bringing WebKit launched the Field Guide to Grid Lanes (formerly known as CSS masonry layout). If you’ve ever read one of our CSS-Tricks Guides, it’s similar to that (their words — just sayin’). It’s a smooth introduction with a variety of barebones and real-world demos. Una Kravets talked about two quality-of-life upgrades for ✅ Nice lil btn scale-down 🙈 Layout change bc the scroll bar disappears🙈 No light dismissThese UX problems can easily be solved with:– closedby="any"– overscroll-behavior: contain Also, Chris Coyier showed us how to animate CSS Day, the annual CSS community conference, was held in Amsterdam on the 11th and 12th of this month (so two days, technically). While there wasn’t a livestream this year, recordings will become available in late June. Until then, check out CSS Day on Bluesky as well as the #CSSDay Bluesky feed to see what happened on stage, what happened behind the scenes, and even the slides from some of the talks. And no, there weren’t any flamethrowers this year, but it wasn’t DOOM-free either (if you know, you know). What a week it’s been, especially with everything that transpired at CSS Day, but if you have any energy left I highly recommend a round (or several rounds) of Sunkanmi Fafowora’s CSS Wordle, which I’ve literally been obsessed with for the last week. Until next time!alpha()function, Grid Lanes, some things about <dialog>that you might not know, CSS Wordle, and more — this is What’s !importantright now.CSS functions, expertly explained
@functionwill probablybe the biggest CSS feature to probablybecome Baseline this year, so I definitely found it a bit intimidating at first. That is, until I read Jane’s baby-step-by-baby-step walkthrough, which eases you into it really well.@functiondocumentation, which you might want to bookmark for quick reference in the future.The
alpha()functionalpha()function caught me by surprise. Firstly, because I hadn’t heard of it, and secondly, because…why?We can already change the alpha channel:/* This */color: alpha(from var(--color) / 0.5);/* Instead of this */color: oklch(from var(--color) l c h / 0.5);/* Just the values */--color: 0.65 0.23 230;/* Then use them flexibly */color: oklch(var(--color));color: oklch(var(--color) / 0.5);/* Function and values */--color: oklch(0.65 0.23 230);/* Delightful */color: var(--color);/* Delightless */color: oklch(from var(--color) l c h / 0.5);alpha()offers the best of both worlds:/* Less delightless */color: alpha(from var(--color) / 0.5);alpha(from var(--color) / 0.5)communicates the intention more clearly than oklch(from var(--color) l c h / 0.5)does. It also makes the declaration inherently shorter.alpha()up.The Field Guide to Grid Lanes

Quality-of-life upgrades for
<dialog><dialog>— the new closedbyattribute, which isn’t supported by Safari yet, and overscroll-behavior: contain. There are some nuggets in the comments too, including a tip about scrollbar-gutter: stable.
[image or embed]<dialog>s, which I think many of us know how to do already, but it’s so easy to mess up. I have to Google it every time (it’s those bleeping @starting-styles).What happened at CSS Day 2026?

CSS Wordle

New web platform features and updates
image-rendering: crisp-edges(now Baseline)rect()and xywh()for shape-outside(now Baseline)path()and shape()for shape-outside(no Safari or Firefox support)Leave a Reply Cancel reply
相关推荐
-
Data Collection Platform
-
How to Preprocess Medical Images for Machine Learning – A Guide Using Chest X
-
Open Source Tools Every STEM Student Should Know About
-
How to Preprocess Medical Images for Machine Learning – A Guide Using Chest X
-
Penetration Testing Methodology
-
Learn JavaScript for Beginners – JS Basics Handbook
- 最近发表
-
- Claims Processing System
- The AI Chatbot Handbook – How to Build an AI Chatbot with Redis, Python, and GPT
- How to Optimize Enterprise Knowledge Graphs for Scalable Digital Product Platforms
- How to Optimize Enterprise Knowledge Graphs for Scalable Digital Product Platforms
- Key Technical Design Decisions for Building an Educational App with LLMs
- CSS Transform Handbook – Complete Guide to CSS Transform Functions and Properties
- Command Line for Beginners – How to Use the Terminal Like a Pro [Full Handbook]
- Learn TypeScript – A Handbook for Developers
- Learn JavaScript for Beginners – JS Basics Handbook
- Command Line for Beginners – How to Use the Terminal Like a Pro [Full Handbook]
- 随机阅读
-
- The Express + Node.js Handbook – Learn the Express JavaScript Framework for Beginners
- Command Line for Beginners – How to Use the Terminal Like a Pro [Full Handbook]
- The AI Chatbot Handbook – How to Build an AI Chatbot with Redis, Python, and GPT
- Backend Challenges Teams Face When Processing Repeat Payments
- How to Build a Browser
- How to Preprocess Medical Images for Machine Learning – A Guide Using Chest X
- How Attribute
- Key Technical Design Decisions for Building an Educational App with LLMs
- The Docker Handbook – Learn Docker for Beginners
- The AI Chatbot Handbook – How to Build an AI Chatbot with Redis, Python, and GPT
- Open Source Tools Every STEM Student Should Know About
- How to Preprocess Medical Images for Machine Learning – A Guide Using Chest X
- The REST API Handbook – How to Build, Test, Consume, and Document REST APIs
- The REST API Handbook – How to Build, Test, Consume, and Document REST APIs
- Learn JavaScript for Beginners – JS Basics Handbook
- CSS Transform Handbook – Complete Guide to CSS Transform Functions and Properties
- Catering Management Platform
- How to Build a Browser
- Command Line for Beginners – How to Use the Terminal Like a Pro [Full Handbook]
- How to Build a Browser
- 搜索
-