Sophie

@sophie@social.lol

🚀 Staff Eng
🐕 Dog botherer
🚧 Web1 enthusiast and fan of pointless websites
💜 #LGBWithTheT

Header: florian.photo

Pronouns
she/her
Where
London
Bluesky
@localghost.dev

I've given my website a bit of a refresh, using Temporal and CSS color-mix to change the background colour depending on your time of day

localghost.dev/blog/time-based

localghostTime-based background colour transitions with Temporal and CSS color-mix - localghostA visual refresh with a background that changes colour according to the time of day, using the new Temporal API along with CSS custom properties that blend into each other.

Has anyone encountered gradient rendering issues with fixed backgrounds in Safari? I have no idea why this is happening, but it's only happening in Safari and it stops if I remove the background-attachment.

Edit: found the culprit: it was because the <body> has container-type: inline-size and it doesn't play nicely with the fixed background. That's a fun bug.

A recording of me scrolling up and down on the development version of my website, showing some horrible black horizontal stripes across the background instead of a continuous gradient. When I turn off "background-attachment: fixed", the gradient looks good.
GIFALT