Weekly Bookmarks 11: The Backlog
- Published on:
- Categories:
- CSS 61, bookmarks 21
- Current drink:
- Ginger & apple tea
Introduction
I did take a break from writing anything for the most of January. During this time, many people published tons of things, so this post will be very long. When I started compiling this list (and actually reading all the content I’m linking to), it ended up a bigger task than I anticipated, so I did also skip publishing over the first week of February. But I’m happy that so many people are writing about CSS!
Because the list of links is so long this time, I did put them into various categories: Interop 2024, Scroll-Driven Animations, Style Encapsulation, Forms and Interactions, Layout, Typography, Thoughts and Opinions, Theming, Other Articles, My Posts — feel free to skip to what you find more interesting, as there are more than 50 articles combined!
Interop 2024
Ok, the first thing I’m sharing is not from January, really. The list of focus areas was just been finalized!
-
“Celebrate a more interoperable web with Interop 2023” by Rachel Andrew — a post about the results of the previous year of the Interop initiative. It is very gratifying to see the possible progress when multiple browser vendors are working on the same goals.
-
“Interop 2024 Dashboard” — the dashboard to keep an eye on as a way to track the progress throughout the whole 2024.
-
All the stakeholders for this year’s initiative did post the introductory posts about it:
-
“The web just gets better with Interop 2024” by Jen Simmons from Apple.
-
“Interop 2024 Launch” by Lola Odelola and Lazarus Letcher from Bocoup.
-
“Interop 2024” by Rachel Andrew from Google.
-
“Microsoft Edge and Interop 2024” by Patrick Brosset and Dan Clark from Microsoft.
-
“Announcing Interop 2024” by James Graham from Mozilla.
-
-
Some people did write about what got into the Interop 2024 list and their thoughts regarding this:
- “Interop 2024” by Andy Bell — a post about the focus areas from the initiative Andy looks forward to most.
- “Comparing Interop 2024 Choices to the Popular Vote” by Chris Coyier — a post looking at the differences between what was chosen and what people voting for the issues on GitHub wanted to be included. Personally, I think there might be a misconception over what the Interop initiative is, but that might be a topic for a separate blog post, not a sidenote in this long list of links.
Scroll-Driven Animations
While scroll-driven animations were not selected for the Interop 2024, I truly hope Safari and Firefox will ship them sooner rather than later: there are so many use cases for them!
-
“A Practical Introduction to Scroll-Driven Animations with CSS
scroll()
andview()
” by Adam Argyle — a tutorial covering the basics of the scroll-driven animations (for more traditional effects on scroll, unlike the weird stuff I tend to do). -
“Highlight Text When a User Scrolls Down to That Piece of Text” by Chris Coyier — a case-study of implementing an effect used by Lene Saile in her blog, but implemented using scroll-driven animations.
-
“CSS Scroll-triggered Animations with Style Queries” by Ryan Mulligan — an exploration of one way to have scroll-triggered animations, based initially on an observation it in Jhey Tompkins’ CodePen which implemented an effect similar to the one in the previous article, but with an addition of style container queries.
Style Encapsulation
There are many discussions about web components recently, specifically about Shadow DOM, style encapsulation, and other related topics. Here are some of the things I found interesting.
-
“Shadow DOM and the problem of encapsulation” by Nolan Lawson — an article looking at the problem of Shadow DOM style encapsulation, the tradeoffs of it, and some existing workarounds.
-
“So, You Want to Encapsulate Your Styles?” by Nathan Knowler — an article looking at the ways styles can cross the Shadow DOM boundary, and how we could use CSS layers, especially
revert-layer
keyword, to achieve encapsulation without it. -
“Some use cases for
revert-layer
” by Mayank — a more precise look into therevert-layer
keyword and its other use cases. Very fascinating techniques showcasing the uniqueness of this keyword and the powers of the custom cascade layers. -
“half-light” by Brian Kardell — a small experimental library which allows writing special custom media-queries to inject some styles into the Shadow DOM from the outside.
Forms and Interactions
-
“Designing better target sizes” by Ahmad Shadeed — a long and very detailed article with many interactive examples about the target area of interactive elements, and some other related concepts like spacing and safe triangle areas for dropdown menus.
-
“Field-sizing just works!” by Kilian Valkhof — a practical overview of the experimental
field-sizing
property. -
“Big, beautiful, beefy focus states with
:focus-visible
” by Dave Rupert — a post about how we can make the keyboard-only focus state much more prominent than the one that is also applied when using a regular:focus
. -
“When will Apple focus on Safari?” by Mayank — an article about how Safari mistreats the focus in CSS, where users have to jump through countless hoops to make it work, and how this is a serious accessibility and interoperability issue.
-
“The Most Underused CSS Media Queries: Hover & Any-Hover” by Jacob Padilla — a brief look at the
hover
andany-hover
media queries. -
“CSS knows about your mouse” by Sarah Gebauer — a similar post which also touches on the
pointer
media queries in addition to thehover
ones.
Also, a reminder from me: cursor: pointer
is a good default for any buttons. Just saying.
Layout
In this section, we have articles covering almost every layout possible in some way, maybe except for the flex layout.
-
“Tutorial: Four CSS Layout Modes and Their Use Cases” by Lara Aigmüller — a brief overview of four older layout algorithms: flow, float, multi-column and positioned.
-
“A Guide to Styling Tables” by Mads Stoumann — an article covering various ways we can style the tables.
-
“‘Inheriting’ grid dimensions from siblings with subgrid” by Lene Saile — an article about how subgrid children can affect the parent grid’s dimensions.
-
“Reality Check #3: Building out a layered hero grid layout from Dribbble” by Andy Bell — a deep dive into an implementation of an interesting layout using CSS grids.
-
“Always great grid - CSS grid +
:has()
+ view transitions” by Adam Argyle — an experiment showing how we can use:has()
in a way similar to quantity queries but when applied to the parent.
Typography
-
“Web typography: baseline grids made easy (finally!)” by Jake Giltsoff — an article about how the
cap
unit could help with implementing designs with vertical rhythm. -
“Webfonts and layout shifting” by Sami Mäkelä — a post outlining how it might be possible to reduce the cumulative layout shift coming from the mismatch of the web font with its fallback, with a few useful resources that can help with it linked inside.
-
“Going beyond pixels and (r)ems in CSS - Relative length units based on font” by Brecht De Ruyte — a detailed article about font-relative units. While they can be used for non-typography related tasks, for obvious reasons typography is where they will be the most useful, and many examples in the article show this. The second part of the series looks into the viewport-relative units, which could also be used for typography, but less so.
-
“Using Font Variant Numeric” by Mandy Michael — an article about
font-variant-numeric
and all the different ways it can help in making numbers look good in text and tables by unlocking the alternative glyphs for the digits that might be present in the fonts you’re using. -
“Nicer Text Wrapping with CSS
text-wrap
” by Will Boyd — an article abouttext-wrap
and its two values:balance
andpretty
.
Thoughts and Opinions
-
“What’s Good?” by Brian Kardell — a question following some Interop 2024 discussions, where Brian asks us to look at things from a different angle and find what we have today and which awesome web platform features we got in the past few years.
-
“What’s Too Good to Be True?” by Matthias Ott — a response to the previous question.
-
“Is CSS alive?” by Matthias Zöchling — a related article with some thoughts about various recent CSS features and how useful Matthias finds them.
-
“A Call for Consensus on HTML Semantics” by Stephanie Eckles — a glimpse over how HTML semantics are not as simple and clear-cut, with many nuances making us think about the code we write.
Theming
Nothing too new in this section, but a few small things that are worth it to remember.
-
“Nested Dark Mode via CSS Proximity” by Jonathan Dallas — a post about how inheritance of custom properties makes them a good fit for theming.
-
“Use CSS
accent-color
to style your inputs” by Cassidy Williams — a reminder that we can use theaccent-color
property as a low-effort way to style the native inputs. -
“Easy Theming with OKLCH colors” by Manuel Strehl — a demonstration of how we can use custom property inside an
oklch()
for theming purposes, achieving a similar effect as for theaccent-color
, but for any custom styles.
Other Articles
There were other articles, which I couldn’t categorize into more specific groups.
-
“Taking a closer look at
@property
in CSS” by Brecht De Ruyte — an article about the basics of@property
and how it can help with animations for custom properties. -
“12 Modern CSS One-Line Upgrades” by Stephanie Eckles — a great collection of simple and powerful CSS techniques.
-
“My CSS resets” by Keith J. Grant — an article, in which Keith showcases his CSS reset, explaining the decisions behind its various parts.
-
“The Complex But Awesome CSS
border-image
Property” by Temani Afif — a deep dive into theborder-image
, and various use cases it allows us to achieve.Temani did publish many other articles and tips, I won’t list them all — follow him yourself! But I will add two of his other recent posts that I did found the most useful:
-
“When to use the
min()
ormax()
function” — a nice way to look and understand the differences betweenmin()
,max()
andclamp()
. -
“Triangle shape with rounded corners” — a nice way to have rounded rectangles by using masks,
clip-path
and CSS variables.
-
-
“My take on fading content using transparent gradients in CSS” by Kilian Valkhof — an article outlining two techniques for achieving an effect of fading lines of text.
My Posts
Since last weekly, I did write just four blog posts, here they are: