Julian

@julzmon
5 Followers
270 Following
76 Posts

New blog post: A custom `--light-dark()` function in CSS that works with any type of value _(not just colors!)_ in just 3 LOC

> CSS Custom Functions (`@function`) + CSS `if()` + CSS `color-scheme()` = one sweet combo!

https://brm.us/--light-dark()

A custom --light-dark() function in CSS that works with any type of value (not just colors!) in just 3 LOC

CSS Custom Functions (@function) + CSS if() + CSS color-scheme() = one sweet combo!

Bram.us

Liskov’s Gun: The parallel evolution of React and Web Components

https://www.baldurbjarnason.com/2024/liskovs-gun/

This is a bit of an experiment. Probably the longest essay I've published directly on my website. 🙂

Liskov's Gun: The parallel evolution of React and Web Components

Web dev at the end of the world, from Hveragerði, Iceland

Interop 2024 is looking good!
Three of four browsers are now above 90%.
Details at https://wpt.fyi/interop-2024
web-platform-tests dashboard

I see a lot of buzz about `font-size-adjust` today.

Let me explain to you how it works in 4 minutes:
https://youtu.be/uadAfE6cAoM?t=1338

- YouTube

Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

12 Modern CSS One-Line Upgrades | Modern CSS Solutions

https://moderncss.dev/12-modern-css-one-line-upgrades/

12 Modern CSS One-Line Upgrades | Modern CSS Solutions

Sometimes, improving your application CSS just takes a one-line upgrade or enhancement! Learn about 12 properties to start incorporating into your projects, and enjoy reducing technical debt, removing JavaScript, and scoring easy wins for user experience.

Modern CSS Solutions

Inspired by a @kevinpowell video - I'm playing with calc() inside the condition of a #css container query:

When 3 * 32ch columns fit…

(inline-size > calc(32ch * 3))

Then jump from 1 to 3 columns…

repeat(3, 1fr)

(You can add gaps to the math if you need – I show it in the codepen. But that level of precision feels like overkill for most situations.)

As I recall, container variables are also specced to resolve in cq conditions, but no one has implemented it?

https://codepen.io/miriamsuzanne/pen/VwRGBeV?editors=1100

Calc in container queries

...

What a fantastic way to present #UIDesign history: The Evolution of the Scrollbar

Interactive scrollbars you can actually play with from the very first (Xerox Star, 1981) until 2015.
https://scrollbars.matoseb.com/

h/t @karger

Evolution of the Scrollbar

Some iconic scrollbars recreated as faithfully as possible.

Realization: CSS Nesting also allows you to basically do "else" clauses in selectors.

complex-selector {
if-styles;

:not(&) {
else-styles
}
}

(if you’re wondering what this code is for, it’s for a bookmarklet to show element boxes for educational reasons)

PSA: The CSS WG just resolved to officially pursue work on native custom functions and mixins 🎉

CSS Findings From Photoshop Web Version

https://ishadeed.com/article/photoshop-web-css/

CSS Findings From Photoshop Web Version

A look at Photoshop web version CSS