Passer au contenu principal
Bluvy Tube
Appuyez sur Échap pour quitter le plein écran
Volume m
/
i
Mode Cinéma t
f
/
CSS random() is newly available in all major engines. But how random is it? Here's how it actually works:

Raccourcis clavier

Espace K
Lecture / pause
← →
Reculer / avancer de 5 s
J L
Reculer / avancer de 10 s
0–9
Aller à 0 %–90 % de la vidéo
Home End
Début / fin
, .
Image précédente / suivante (en pause)
< >
Ralentir / accélérer
↑ ↓
Volume
M
Couper / rétablir le son
C
Sous-titres
F
Plein écran
I
Image dans l’image
T
Mode cinéma
?
Afficher cette aide

CSS random() is newly available in all major engines. But how random is it? Here's how it actually works:

0 vue Publié le 26/11/2026 15:17 3:12
CSS random() is newly available in all major engines. But how random is it? Here's how it actually works:
8 commentaires
?
Alvar Lagerlöf @alvar.dev · 27/11/2026 08:36
@jakearchibald.com How is an element defined? Is there some kind of internal id? Moving it doesn't change it, but removing and then adding leads to a different element surely. What about page reloads, of bfcache?
You can think of it as an internal ID, or you can think of it as how handles to DOM nodes work in JavaScript. If you remove and re-add a node with JS, it's still the same node, so it's still the same element.

Page reloads are different - because all elements are newly parsed from HTML…
My favourite content creator back creating content about how to make content! 🤩
Janis Jansen 🌳 @janis.me · 26/11/2026 18:14
Great video! Gotta refresh my memory of how different libraries re-use (or not re-use) element instances I guess!
Alhadis @alhadis.bsky.social · 26/11/2026 16:44
Another step closer to replacing all scripted visual effects with CSS.

I'd feel so much better about these additions if most modern CSS looks like (and continues to look like) this:
Alhadis @alhadis.bsky.social · 27/11/2026 08:22
*didn't continue to look like
Woody @woodyrew.dev · 26/11/2026 16:30
Nice, great explanation. Love the scoping that comes out of the box.
Nailed it in 3 minutes. Nice work.
Allllmost. Thankfully bsky allows videos longer than 3mins now.
Rebane @rebane2001.bsky.social · 26/11/2026 15:23
ooh you can seed it too! that's fun
Voir le post d'origine sur Bluesky
Lien copié dans le presse-papier

Connexion

Il est temps de faire une pause

Ça fait 30 minutes que vous enchaînez les vidéos : accordez-vous 5 minutes loin de l'écran. Levez-vous, étirez-vous, buvez un verre d'eau… Les vidéos vous attendront ici.