Bramus
@bram.us
8.9K followers 340 following 930 posts
Chrome DevRel at Google (CSS + Web UI + DevTools). CSSWG Member. PADI Divemaster. Blogs at bram.us. Lives in Belgium.
Posts Media Videos Starter Packs
Pinned
bram.us
Bramus @bram.us · Dec 17
🔥 Remember Internet Explorer’s Page Transitions? THEY’RE BACK BABY!

👾 Demo: ie-page-transitions.netlify.app
⌨ Repo: github.com/bramus/ie-pa...

To configure these, use the meta tags from the olden days + load up the library.

Works in IE 5.5–7.0, Chrome 126+, and Safari 18.2 (buggy).
Reposted by Bramus
justinfagnani.com
inherit() is going to be absolutely huge for working with CSS custom properties. Two big things it'll enable:

Nested indentation:

--indent: calc(inherit(--indent, 0) + 1);

Overridable design token defaults:

--primary-color: inherit(--primary-color, blue);
Reposted by Bramus
infrequently.org
Look, you might think frontend is fine and going well, but today I found a 1.1MB PNG (that could have been a 40K AVIF) in the critical path of an important app.

Embedded in an SVG as a `data:` URL.

Shipped as a React component.
Reposted by Bramus
css-only.dev
It's also easy to debug using @developer.chrome.com

It shows you which fallback position is used by crossing out all the others. When all of them are crossed out, the position defined on the element is the one used.
bram.us
Streaming and animations don't play nice together. What can help is to use DevTools to slow things down and show it that way.
bram.us
Also: they named (*) the stages “gates”, so this Euro retro-classic has been stuck in my head all day:

www.youtube.com/watch?v=2JVN...

🤌 THE GATES ARE OPEN! 🤌

(* mistranslated?)
D-Devils - 6th Gate
YouTube video by xope87
www.youtube.com
bram.us
I am currently in Milan (Italy) for CodeMotion, where I’ll be giving a talk tomorrow afternoon.

As you might have guessed/expected, I’ll be spreading the word on View Transitions 😊
Promotional image for CodeMotion
bram.us
Check out this sweet Scroll-Driven Animations demo created by Jeff (after he watched my free video course – scroll-driven-animations.style#learn)

codepen.io/webcraftsman...

(Browser support: Chrome 115, Safari 26)
bram.us
@nomster.bsky.social pointed out that a `custom.css` has privacy implications as well.

I recall Arc exposing custom props for its color theme (such as `--arc-palette-title`, ), which could be used to 1) Detect Arc but also to 2) Uniquely identify and track Arc users across the web.
Reposted by Bramus
utilitybend.com
🚀As a case study, I tried to recreate the famous Guess Who game with built-in AI and the Prompt API. It was a really interesting experience, to say the least.
My heart is at CSS & UI, and always will be. However, I do love to experiment with a variety of (web)technologies 😄 Read all about it
Build a guessing game with the Prompt API  |  Blog  |  Chrome for Developers
My game of Guess Who demonstrates how AI can be used to build thoughtful game logic, and the importance of prompt engineering to get the outcomes you expect.
developer.chrome.com
Reposted by Bramus
sarasoueidan.com
This talk by @nerdy.dev is a wonderful presentation of why CSS is awesome and why we love it so much www.youtube.com/watch?v=QW6G...

Just look at what's possible with #CSS today

And the format is great for the impatient ones (myself included). Right speed, right transitions (pun intended 😉)
Adam Argyle - 25 new & rad feature of CSS
YouTube video by CascadiaJS
www.youtube.com
bram.us
Ooh, #TIL!
bram.us
FWIW: there are extensions that allow you to set custom CSS on all/specific sites.

The injected CSS is Author-origin, though, so you'll most likely need to bump up the specificity of your selectors or slap some !important's on some (all?) declarations.
bram.us
Many browsers _did_ support it back in the day, but moved away for <reasons>.

I don't know the details, but one thing that immediately comes to mind could be security. If a UA offers a custom sheet (at a fixed location), it'd be easy for malware to abuse this.
Reposted by Bramus
aleksandrhovhannisyan.com
> Writing an article

> Hey I should explain some background knowledge first

> Hmm, maybe that should be its own article

> Neither article gets written
bram.us
Out of curiosity, what would you put in your user-origin stylesheet?

(Side note: css-cascade-6 is the latest level of that spec — drafts.csswg.org/css-cascade-... — so there's more steps in the cascade nowadays)
bram.us
IIRC it was possible at one time in Chrome, but the option got removed and replaced with some controls such as a slider to control the default font-size to use.

This predates my time at Chrome, so I don't l know the backstory there.
bram.us
How UAs let you define the contents that goes in the user-origin is not defined anywhere, as that's an implementation detail.

Some browsers could offer a CLI flag that points to a file, others could use a textbox, others could let you refer to a file from the settings, etc.
Reposted by Bramus
sarasoueidan.com
OK @kevinpowell.co has written what has to be one of the best (if not THE best) practical article to #CSS colors I have read in a while. piccalil.li/blog/a-pragm...

Easy to read, practical examples, and *perfect* for someone like me who's fallen behind and hasn't kept up with all the new stuff.
A pragmatic guide to modern CSS colours - part one
Whether you've got a firm grasp on modern CSS colour capabilities, or you're thinking 'I struggle to understand why I should use modern CSS colours at all', then the first part of this article series,...
piccalil.li
Reposted by Bramus
katiefenn.bsky.social
Hey #WDC2025, if you want a talk to watch on the way home, my talk from @heypresents.com was published today!

I make some Daft Punk with a MIDI controller and a web browser.
heypresents.com
Not only that, but we managed to interrupt a movie playing in the screen next door with the volume of the demo. It certainly woke us all up before heading off to the social. It sounded incredible! Watch the talk and find out more here:

heypresents.com/talks/around...
Around the wwworld: Web MIDI, Web AUDIO and what the web does best
So, you don't use the Web Audio and Web MIDI APIs in your day job - does that mean they have nothing important to tell us about the nature of the Web? Think again! Katie Fenn takes us on a tour of the...
heypresents.com
Reposted by Bramus
chriscoyier.net
rawdogging some shape() to build "round out" tabs.

I'll blog it eventually. modern CSS rules.