Sign up

Bramus

Not verified No WebSub updates No webmention support Valid

Public posts from @bramus@front-end.social

Generator
Mastodon v4.6.0
Public lists
btconf 2026 speakers
Fetched

Bramus Valid

“More” I say?

Yes, I did an experiment with making an extension to debug Anchor Positioning before:

https://front-end.social/@bramus/116213083230487150

There's a lot of complexity involved to make it work accurately … so that one ain't public (yet?).

Bramus Valid

Some more prototyping fun: this time an extension to visualize the Containing Block of an element.

It shows the element and its containing block (an element, the Viewport, or the ICB) along with some base info.

Get it here: https://chromewebstore.google.com/detail/devtools-containing-block/cfhjohibdfclahlfljknkjmcdkfkcflj

What other info would you like to see in a feature like this?

(The heavy lifting to identify the containing block is done by the https://github.com/bramus/get-containing-block package which I also created for this)

Bramus Valid

RE: https://front-end.social/@leaverou/116297807826814028

Before you blindly say 100px–200px–300px, hear me out: https://github.com/LeaVerou/blog/discussions/137#discussioncomment-16340589

(And if you really want it to be 100px–200px–300px then it’s simple: don’t type the --arg)

Bramus Valid

RE: https://mastodon.scot/@svgeesus/116280100248182454

More details on the “parsing would be hard” part in https://www.bram.us/2026/03/19/more-easy-light-dark-mode-switching-light-dark-is-about-to-support-images/ ;)

Bramus Valid

CSS `light-dark()` is about to support images!

https://www.bram.us/2026/03/19/more-easy-light-dark-mode-switching-light-dark-is-about-to-support-images/

Shipping in Firefox 150. Starting tomorrow, available behind a flag in Chromium 148.

Bramus Valid

New in Chromium 148: detect at-rule support in CSS with `@supports at-rule(@keyword)`

https://www.bram.us/2026/03/15/at-rule/

Chrome 148 is currently available on the Canary and Dev release channels. It goes stable at the end of April.

Bramus Valid

RE: https://mastodon.world/@heypresents/116222571128090421

“Curiosity breeds Discovery”

I spend a fair bit of time playing with View Transitions, and bending it in all sorts of ways.

This talk compiles my insights from building some of the more wild things with VTs.

See you at All Day Hey!?

(Expect a lot of code getting thrown your way!)

Bramus Valid

Other takeaways are:

- Damn, that was fast!
- We need a way in DevTools/the web to be notified of style changes (hello, brm.us/style-observer!)
- We need a Element.getAnchor() JS method.
- The "remembered scroll offsets" are a PITA.

Bramus Valid

So. Anchor Positioning and DevTools …

I sat together with The Hype™ tonight and this is what we built in 2 hours.

Main takeaway from this experiment is that it still requires a “Subject Matter Expert” (in this case: me) to build this, instructing The Hype™ what to do (and sometimes how to do it).

Bramus Valid

Introducing `view-transitions-mock`: A non-visual Polyfill for Same-Document View Transitions

https://www.bram.us/2026/03/11/view-transitions-mock-is-a-non-visual-polyfill-for-same-document-view-transitions/

It is a spec-compliant JavaScript implementation of Same-Document View Transitions that polyfills the entire JavaScript API surface but that doesn’t do the animation bits.

Bramus Valid

Help me out:

I’m looking for examples / use-cases where you want to trigger an action _after_ a programmatic scroll(*) finished.

No need for an actual demo; a description of the use-case itself is good enough.

(*) Things such as `Element.scrollIntoView()` or `window.scrollTo()`.

Bramus Valid

RE: https://mastodon.social/@btconf/116199043077374654

👀

Bramus Valid

On my way back home from #SotB2026 I hacked my way into animating between `position-area` values with View Transitions. The VT automatically gets started by a StyleObserver.

Demo + details can be found on my blog: https://brm.us/animate-position-area

It’s not 100% perfect though, as Firefox doesn’t do anything and Chrome has a 1-frame glitch.

Bramus Valid

RE: https://mastodon.world/@webstandards/116147775062588951

You can find the slides of my #SotB2026 talk on my blog: https://www.bram.us/2026/02/28/anchors-aweigh-sotb2026/

Bramus Valid

You can install `view-transitions-mock` through NPM. The library is fully tested, in both browsers with and without native View Transitions support.

All info in the repo: https://github.com/GoogleChromeLabs/view-transitions-mock

Bramus Valid

With the mock registered, you can write modern standard-compliant Same-Document View Transitions code for _any_ browser, including those without support for document.startViewTransition or VT Types.

Safely call the API, handle its promises, and manage VT Types as if they were natively supported! 🥳