Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

commitStyles() has existed for years, but now in Firefox, it behaves like I always thought it should. Firefox is the first to make this change, but hopefully others will follow soon.

10,870 Aufrufe • vor 1 Jahr •via X (Twitter)

16 Kommentare

Profilbild von Jake Archibald
Jake Archibaldvor 1 Jahr

The task scheduling API helps you take a large synchronous task, and chunk it up into smaller pieces, yielding to the event loop and rendering along the way. It’s now in Chrome & Firefox, but there’s a polyfill for Safari users.

Profilbild von Jake Archibald
Jake Archibaldvor 1 Jahr

URLPattern lets you parse URLs using familiar route syntax. It’s now in Chrome & Firefox, but it’s likely to land in the next version of Safari.

Profilbild von Jake Archibald
Jake Archibaldvor 1 Jahr

Yay! It's the first Firefox release since I've joined the team, so let's take a look at some of the new developer-facing features in Firefox 142… 🧵

Profilbild von Jake Archibald
Jake Archibaldvor 1 Jahr

…And that’s not all! See for more features, fixes, and tooling updates.

Profilbild von original だいすけ
original だいすけvor 1 Jahr

Peter Storm!!

Profilbild von 🍥kvndy
🍥kvndyvor 1 Jahr

Both fillMode and commitStyles are hacks obviated by additive and relative animation, relative to the specified style, from the delta to zero. CSS Transitions Faster Reversal too, these are all unnecessary, sub-optimal solutions. Why can’t the browser calculate the “FLIP” for us?

Profilbild von Jake Archibald
Jake Archibaldvor 1 Jahr

Doesn't the view transition API handle the 'FLIP' case really well?

Profilbild von 🍥kvndy
🍥kvndyvor 1 Jahr

Handling of interruption and retargeting performs as CSS Animations. Jumps to destination. Animations don’t blend together but they could, using the easing function

Profilbild von Stas Lashmanov
Stas Lashmanovvor 1 Jahr

So .finished resolves exactly 1 frame before the styles return back to initial state or do we get a 1 frame jump before the styles are committed?

Profilbild von Jake Archibald
Jake Archibaldvor 1 Jahr

They haven't changed when finished resolves, it's more that commitStyles knows to apply the final state in that case. This all happens before the next paint, so there's no visual jump.

Profilbild von JvdMeulen
JvdMeulenvor 1 Jahr

Ik waardeer je inzet vanuit het verleden enorm maar dit is een beetje zoals wij Nederlanders zeggen: “wij van wc-eend”.

Profilbild von Jake Archibald
Jake Archibaldvor 1 Jahr

It's fair to question everything, but I invite you to judge the actual content here. What's your issue?

Profilbild von JvdMeulen
JvdMeulenvor 1 Jahr

It’s not the technical stuff, it’s more like “they were lacking behind, but now I’m here and everything is great again”.

Profilbild von Jake Archibald
Jake Archibaldvor 1 Jahr

I was upfront about features that were also in other browsers, even if they were in previews, or just being worked on. If I was as dishonest as you're painting me, I wouldn't have mentioned any of that.

Profilbild von Jake Archibald
Jake Archibaldvor 1 Jahr

And I absolutely reject your accusation that I'm making out that I'm the reason anything has changed.

Profilbild von JvdMeulen
JvdMeulenvor 1 Jahr

Not accusing, assuming. That’s how it “felt”. I’m sorry that I’m being to harsh. I didn’t mean to be mean/ignorant.

Ähnliche Videos