Published at
Updated at
Reading time
The Web Weekly newsletter keeps you up to date, teaches you web development tricks and covers all things working in tech.

Guten Tag! Guten Tag! πŸ‘‹

Do you know the sudo command has a cute logo? Or how executables are structured? Or how color spaces work on the web?

Turn on the Web Weekly tune and find all the answers below. Enjoy!

Michael listens to "OMA – N.Y. State of Mind" and says:

"Love this groovy instrumental version of this classic Beat by DJ Premier."

Do you want to share your favorite song with the Web Weekly community? Hit reply, and we'll listen to it together!

Remember Web Weekly 121? It was when Apple announced that they'd allow different browser engines on iOS to comply with the EU's Digital Markets Act (DMA). We all celebrated the open web for a second only to discover the catch.

Only EU citizens will be allowed to use different browser engines. EU-only? That's fishy, but it got worse.

In the following iOS beta update, Apple turned off the "Add to home" functionality.

iOS dialog telling that the browser will open in Safari

Isn't "Add to home" the feature that removes the URL bar and browser frame? That's right. Apple disabled the one feature that makes web apps look like native apps. As Maximiliano Firtman points out, users will also lose data and web push will stop working. All EU-only, of course.

Could this have been an accident? It's not, and here it's written in black and white.

And so, to comply with the DMA’s requirements, we had to remove the Home Screen web apps feature in the EU.

Should Caniuse and MDN compat tables now add country / region flags, too? This regional divide is just bonkers.

I can't imagine what it's like to be working on the open web at Apple. The Webkit team was pushing hard. Safari was catching up; they added web push and led in certain web development areas, only to be "evil Apple" again.

Some say we should be strict and exclude Apple from open web standards discussions in the WHATWG and w3c. A company that doesn't want the web to win shouldn't influence the open web. I can get behind this opinion.

But it's not just Apple flexing. Microsoft is playing the evil twin when it comes to browser choices.

How hard could it be to install a new browser on recent Windows? It turns out β€” very. Microsoft even goes so far as to intercept and inject "Edge" ads into the Chrome download page.

Chrome download page with an injected Edge ad.

But what do you do with the people that succeed and install another browser? You optimize all the OS settings to fall back to Edge.

And if none of this works and people still use Chrome on Windows, then it's time to steal the open Chrome tabs and show them in Edge. Just because, why not?

The browser / OS wars are getting nastier, and it hurts me to see that the web is suffering under this. We all just want to build cool stuff, right?

Something that made me smile this week

"SUDO" written over a smiling sandwich.

I rarely find myself using sudo (superuser do). But do you know that the sudo command has a logo? And that this logo is a sandwich?

It's based on the 149th xkcd comic. Congrats to your new nerd trivia fact! I hope you make some points in your next pub quiz night.

Learn more about sudo

Open tabs

Aspect ratio in view transitions

::view-transition-old(text), ::view-transition-new(text) {   /* Break aspect ratio at an element level */   height: 100%;   /* But maintain it within the image itself */   object-fit: none;   /* And hide parts of the image that go out of bounds */   overflow: clip; }

Animated aspect ratios can look terrible. What do you do with the included text? How do you transition an element to look "just right"?

Jake Archibald explains how to do it with the new'n'fancy view transitions API!

Animate all the things

Side note: View transitions will soon go from a Chromium thing to a Chromium/Webkit thing. Beautiful transitions are coming to the web!

Drop all these complicated clamp definitions

Isn't it weird that we all use online generators to create fluid-type clamp() CSS definitions? I mean, nobody's creating these by hand, but there should be some tooling for it.

I asked the Fediverse about this and learned some things.

Utopia type scale controls for min and max viewport.

Our friends at Utopia open-sourced their Fluid type scale calculator. It's available on GitHub β€” trys/utopia-core.

And with all the calculations being ready to use in JS, it shouldn't be hard to put them into a PostCSS plugin, right? Utopia maintainer Trys Mudford thought the same, and here we are.

.my-class {   margin-block-end: utopia.clamp(16, 24);    /* Generates */   margin-block-end: clamp(1rem, 0.7895rem + 1.0526vi, 1.5rem);    /* If you've not set minWidth & maxWidth in your config, add them here */   margin-block-end: utopia.clamp(16, 24, 320, 1080); }

If you're using PostCSS and are tired of all these copied clamps, you can now generate them on the fly. Thanks, Trys!

The AI effect on software quality

I’m worried the global, net effect of Copilot might be that it’s making accessibility on the web even worse than it already is.

Josh Collinsworth shares concerns about GitHub Copilot. And he's on point!

I use Copilot every day. It's excellent for tedious tasks. It also speeds up development. I love it.

But it's dangerous when I use it for areas I don't know much about. Coding with AI is like copying Stack Overflow answers on steroids. It'll work eventually, but the AI doesn't understand code. If you don't either, the result is probably not good enough.

Don't trust AI

Color spaces are just made up

A visualized gradient in a polar space.

Who understands how color spaces work? I don't, but Eric Portis's blog post made some things click. If you're curious about Oklab and its more usable friend, OKLCH, this post is for you!

Understand color spaces

A smart custom property trick

  let observer = new IntersectionObserver(entries => {     entries.forEach(entry => {       let ratio = entry.intersectionRatio;'--intersecting', ratio);         });   }, options);

Heydon Pickering shared how to use custom properties to avoid complex DOM querying. I love how CSS can make JS less complex! πŸ’―

Use custom properties

You're halfway through!

Wowza! Would you enjoy getting Web Weekly straight to your inbox?

The wonderful weird web – Invidious

A list of video thumbnails

Invidious or is a lightweight frontend for YouTube. It promises to be lean, privacy-first and ad-free.

And if you like it, here's a browser extension that automatically changes YouTube links to YewTube links.

Watch videos another way

What are your favorite internet corners? Send them my way, and I'll include them in Web Weekly!


A switch(true) statement allowing to use function in the case statements

I rarely use the good old JavaScript switch, but the switch(true) pattern crossed my path multiple times and has some beauty compared to multiple if blocks.

Bring back the switch statement

Again, on browsers...

Three logos: ladaybird, floorp and orion

Do you know about Floorp, Orion, or Ladybird? While these names sound like planets from another universe, they're browsers!

Tyler Stick collected some alternatives to the major browsers.

What's a "normal" font file size?

And so, a conclusion: the median font file with English-only subset of characters should be around 12K. If you look at your network requests and your font is much larger, well there's work for you to do.

Custom fonts can quickly become a performance bottleneck. But when is a custom font too big? Stoyan Stefanov took a data-driven approach and analyzed how many bytes are needed for a "normal" font.

Evaluate your fonts

What's inside an executable?

Cat of an executable showing random characters

Oldie but goldie: if you want to learn what's inside executable binaries, this post is for you!

Inspect the binaries

Random MDN – SecurityPolicyViolationEvent

From the unlimited MDN knowledge archive...

If you're defining a content security policy, you can track what has been blocked by defining a violation report via report-to.

Content-Security-Policy: default-src 'none'; style-src; report-to /_/csp-reports

But did you know you can track all these violations in JavaScript, too?

document.addEventListener("securitypolicyviolation", (e) => {   console.log(e.blockedURI);   console.log(e.violatedDirective);   console.log(e.originalPolicy); });

Track all these violations

TIL recap – CSS System Colors

CSS System colors: AccentColor, AccentColorText, ActiveText and many more.

Did you know the CSS Color module spec defines colors beyond hotpink and tomato red? There's also Canvas, AccentColor or HighlightText. You haven't heard of them? See them in action on the blog!

Use system colors

Find more short web development learnings in my "Today I learned" section.

New on the platform table showing AVIF support. And Edge only recently added support.

Chrome and Edge both use Chromium under the hood. That should mean both browsers support the same web features, right? Wrong.

Edge 121 finally started to support the AVIF image format. Why did it take so long? Apparently, there's been a "licensing problem" that needed to be resolved first.

Either way, AVIF is ready on the main browser engines now! Yay for the web!

Classifieds & friends

Three valuable projects to have a look at

A new Tiny Helper

A colurful website showing a photo camera.

If you're looking for a new color palette, Huemint generates endless color combinations that you can preview in example layouts. Nice!

Find a great color palette

Find more single-purpose online tools on

Thought of the week

Alex Russel published the 7th part of his "Performance Inequality Gap" series, and as always, it's a long, spicy and full of criticism read about today's web development best practices. Love it or hate it, the arguments are on his side.

The "i" in iPhone stands for "inequality".

This is all, friends!

Loved this email? Hated this email? I want to hear about it!

If you think there’s something that needs to be improved or something that you enjoyed, reply to this email because I want to know more!

And with that, take care of yourself - mentally, physically, and emotionally.

I'll see you next week! πŸ‘‹

Was this post interesting?
Yes? Cool! You might want to check out the email version. The last edition went out 10 days ago.
Stefan standing in the park in front of a green background

About Stefan Judis

Frontend nerd with over ten years of experience, freelance dev, "Today I Learned" blogger, conference speaker, and Open Source maintainer.

Related Topics

Related Articles