Thanks. Looks hideous. @function --light-dark(--light, --dark) { result: var(--light); @media (prefers-color-scheme: dark) { result: var(--dark); } }
CSS Custom Functions are coming
21–30 of 90 posts
Re: CSS Custom Functions are coming
#22Re: CSS Custom Functions are coming
#23"Your scientists were so preoccupied with whether or not they could, they didn't stop to think if they should."
Re: CSS Custom Functions are coming
#24holy shit I need to retire soon
Re: CSS Custom Functions are coming
#25Re: CSS Custom Functions are coming
#26Re: CSS Custom Functions are coming
#27If I had mind-boggling amounts of money, one of the things I would do is start an organization to name and shame and give anti-awards to websites that most abuse javascript and whatever-this-will-be. Or a dang mutual fund: "Like an index fund except we don't support companies with websites that require a ridiculous amount of control over the client computer."
Wait, who am I kidding: A real activist tycoon would probably just become a shareholder and make demands.
Re: CSS Custom Functions are coming
#28Today on "everything that's wrong with modern web and more"
Re: CSS Custom Functions are coming
#29I look forward to writing Typescript that transpiles to Javascript that writes CSS that calls functions.
Re: CSS Custom Functions are coming
#30I look forward to writing Typescript that transpiles to Javascript that writes CSS that calls functions.