Chris Coyier on

Real-World Usage of content-visibility

Jeremey Keith uses the little-used CSS property content-visibility to improve the performance on a fairly heavy page. It works a treat. I did a before-and-after check with pagespeed insights on the page for Out On The Ocean. The “style and layout” part of the main thread work went down considerably. Total blocking time went from more than 600 […]

Chris Coyier on

Syntax Highlighting with no spans?!

When I think of showing off syntax highlighted code on the web, I think of code that takes in a string of code, finds relevant substrings (tokens) with elaborate RegExes, then wraps them in <span>s with classes to that color can be applied to those classes. This is quite literally how it works. The really […]

Chris Coyier on

The EditContext API

I hadn’t heard of the EditContext API at all, but apparently it’s landed in Chrome already. Aaron Iker has a nice thread on it. Using a <textarea> or the contenteditable attribute on HTML elements offers a pretty limited text editing experience. Some fancy text editing components actually hide the original editable element, which is part […]

Chris Coyier on

Scroll-Locked Dialogs

I just wrote about the <dialog> element, with some basic usage and things to watch for. It’s a great addition to the web platform. Here’s another interesting thing we can do, connecting it to another one of my favorite new things on the web platform: :has(). (You can see I’ve been pretty into it lately.) […]

Chris Coyier on

The Linear Look

If there is any one web design style trend that is dominant right now, it’s The Linear Look, as Alex Trost shows off here.

Chris Coyier on

Global Design System

A global design system is what Brad Frost says we need to save the world from unnecessary repeat (and error prone) work. Dave Rupert and I spoke with Brad on ShopTalk all about it. I still had some questions (you know I’m big on asking questions!), and Brad’s going to think on them. I feel […]

Chris Coyier on

Building a TODO App from Scratch — Step 2 — HTML

OK it’s HTML time! I love HTML time. We’re laying down a foundation that makes everything feel very real. Is HTML jumping the gun? Nah. The reason that we can jump to HTML right away is that it is common to any other future choice we make. As I mentioned, we might just stay in […]

Chris Coyier on

The Case For Design Engineers

I like the case Jim Nielsen makes here in Part 2 of his series on why a role of “Design Engineer” makes a lot of sense. You’re given a design with a note: the dividing line between these two containers should be interactive so the user can drag to resize the respective containers on either […]