Home/Daniel Schwarz
Author
DSDaniel Schwarz

Daniel Schwarz

82 articles by Daniel Schwarz.

Engineering — Quick Hit #75

Quick Hit #75

Safari 26.2 ships command and commandfor as well as hidden=until-found, which are now supported in all web browsers.

DSDaniel SchwarzDaniel Schwarz·December 24, 2025Engineering
Engineering — Quick Hit #74

Quick Hit #74

Safari 26.2 ships sibling-index(), sibling-count(), and field-sizing, bringing them close to baseline.

DSDaniel SchwarzDaniel Schwarz·December 22, 2025Engineering
Engineering — Quick Hit #70

Quick Hit #70

Firefox 146 becomes the first to trial @custom-media, an at-rule that’s like custom properties but for media queries.

DSDaniel SchwarzDaniel Schwarz·December 15, 2025Engineering
Languages — What Else Could Container Queries... Query?

What Else Could Container Queries... Query?

How far can we really go with container queries? There are dozens of media queries now, so what if there were dozens of container queries as well? What could we use them for?

DSDaniel SchwarzDaniel Schwarz·December 12, 2025Languages
Frontend — Quick Hit #68

Quick Hit #68

Firefox 146 has shipped the CSS Color 5 version of contrast-color() that only resolves to black or white. Hopefully Chrome support and CSS Color 6

DSDaniel SchwarzDaniel Schwarz·December 10, 2025Frontend
Engineering — Quick Hit #67

Quick Hit #67

Responding to Wes Bos, Bramus demonstrates the different position-area values and how to handle inside corners (as there aren’t values for these).

DSDaniel SchwarzDaniel Schwarz·December 8, 2025Engineering
Engineering — Quick Hit #66

Quick Hit #66

@heyo53 asks on Bluesky: Is it okay to style or hide scrollbars?

DSDaniel SchwarzDaniel Schwarz·December 5, 2025Engineering
Systems — Quick Hit #64

Quick Hit #64

Chrome 143 has introduced anchored fallback container queries to help us query the currently applied fallback position of anchored elements.

DSDaniel SchwarzDaniel Schwarz·December 3, 2025Systems
Frontend — Quick Hit #63

Quick Hit #63

Black Friday might be over but you can still save big on any of Piccalilli's CSS, JavaScript, or UX courses until December 9th, 2025.

DSDaniel SchwarzDaniel Schwarz·December 1, 2025Frontend
Systems — The Range Syntax Has Come to Container Style Queries and if()

The Range Syntax Has Come to Container Style Queries and if()

Being able to use the range syntax with container style queries — which we can do starting with Chrome 142 — means that we can compare literal numeric values as well as numeric values tokenized by custom properties or the attr() function.

DSDaniel SchwarzDaniel Schwarz·November 13, 2025Systems
Frontend — How To Leverage Component Variants In Penpot — Smashing Magazine

How To Leverage Component Variants In Penpot — Smashing Magazine

With component variants, design systems become more flexible, letting you reuse the same component while adapting its look or state with ease. In this article, Daniel Schwarz demonstrates how design tokens can be leveraged to manage components and their variations using Penpot, the open-source tool built for scalable, consistent design.

DSDaniel SchwarzDaniel Schwarz·November 4, 2025Frontend
Frontend — Exploring the CSS contrast-color() Function… a Second Time

Exploring the CSS contrast-color() Function… a Second Time

The contrast-color() function doesn’t check color contrast, but rather it outright resolves to either black or white (whichever one contrasts the most with your chosen color). Safari Technology Preview recently implemented it and we explore its possible uses in this article.

DSDaniel SchwarzDaniel Schwarz·June 5, 2025Frontend
Frontend — Invoker Commands: Additional Ways to Work With Dialog, Popover… and More?

Invoker Commands: Additional Ways to Work With Dialog, Popover… and More?

Web browsers are experimenting with two HTML attributes — technically, they’re called “invoker commands” — that are designed to invoke popovers, dialogs, and further down the line, all kinds of actions without writing JavaScript. Although, if you do reach for JavaScript, the new attributes come with some new events that we can listen for.

DSDaniel SchwarzDaniel Schwarz·November 20, 2024Frontend
Frontend — Animating CSS Grid (How To + Examples)

Animating CSS Grid (How To + Examples)

I’m pleased to shine a light on the fact that the CSS grid-template-rows and grid-template-columns properties are now animatable in all major web browsers!

DSDaniel SchwarzDaniel Schwarz·January 25, 2023Frontend