CSS superfan. 3D DOM wrangler. Argentino 🇦🇷
Open source @ https://layoutit.com · https://polycss.com · https://lowpoly.gg
Two Rings
CSS only, using random(), sibling-*(),and some trig.
Live demo on @codepen.io: codepen.io/editor/amit_...

@lowpoly.gg
CSS superfan. 3D DOM wrangler. Argentino 🇦🇷
Open source @ https://layoutit.com · https://polycss.com · https://lowpoly.gg
Two Rings
CSS only, using random(), sibling-*(),and some trig.
Live demo on @codepen.io: codepen.io/editor/amit_...
Staggering cards with sibling-index() is easy. Staggering what's inside each card is where it falls apart.
Luckily, we can use @property to fix it, as it allows us to change where the value of a custom prop is calculated.
New post: System Colors in CSS 🎨
I tested all 19 CSS system colors in light and dark mode across Chrome, Safari, Firefox, Tor, Ladybird, and Servo; and found some "copied homework", a Tor fingerprinting quirk, and a Servo dark-mode surprise.
The idea is to encode multiple values into one number (using calc, round, and mod), and store that state with view timelines. I'm writing my next article about this, but I keep finding better patterns, so I keep rewriting it 😅
@patrickbrosset.com here is my list of anchor positioning interop quirks. As usual it's hard to confirm bugs, but I could not find these reported in the trackers 🤞
Made one codepen for the seven cases: codepen.io/editor/alowp...
Anchor positioning is a complex beast. We’re expecting to finally advance it to Baseline Newly Available next week, meaning support across Firefox, Safari, Chrome, Edge. If you know of any major bugs / partial implementations that should prevent it from advancing, please let me know very soon.
I am trying AoC in pure CSS! Completed the first challenge today, seems like it will be fun.
You should check out @css-only.dev articles about anchor positioning, it is a very poweful new tool!
I have quite a few! I will triple check if they're not already reported and send them your way.
It's been such an insane year! 🤩 View timelines reaching baseline changed the game (pun intended). And once we get @function and if() the syntax will look much better. Truly feels like a new era for CSS.
More info here! dasl.ing/tiles.html cc @robin.berjon.com
I'm experimenting with resize: both, dragging a card actually resizes an invisible box behind it. The card is anchored to that box's bottom right corner, and then anchor-size() gets the [x, y] on release.
Here it is! More webtile games coming soon 💚
Play Windows Solitaire (1990) in pure #CSS. This uses random(), view timelines, bitpacking, and no JavaScript! 🃏
Try it: codepen.io/editor/alowp...
ident() changes everything! Can't wait for that plus @function, if(), inherit() and typed attr() 🤞
I came across an AI-related reel on Instagram today. The reel made me smile, and I thought it was too good not to share. So I sent an email newsletter about it:
Random() and Responsive! A cool demo in progress 👀
The web is losing its personality
CSS random() is newly available in all major engines. But how random is it? Here's how it actually works:
I ❤️ the web platform! Not only are we getting awesome new #CSS tech every month, we can actually participate in the process by reporting edge cases and quirks.
Thank you @patrickbrosset.com and the engine teams for your hard work!
You'll be happy to see this: bugzilla.mozilla.org/show_bug.cgi... I talked to folks about your issue, a bug got filed, and is getting fixed now.
Computing with CSS layout. @lowpoly.gg uses container query units, grid, flexbox, anchor(), and order as a calculator to sum, find maximums, sort, and rank values without JavaScript, often much faster than plain calc(). #css #layout