News for hackers. Stuff that matters.
Re:Things CSS Could Still Use Heading into 2023 by psygn89 on Saturday December 24, 2022 @06:55PM (#34122491)
I wish CSS had a dynamic color property that will update the font color to white or black (or your choosing) depending on the background. For now I have to either calculate it with sass or js (when the users can change colors on the fly).
Re:Things CSS Could Still Use Heading into 2023 by TheAngush on Sunday December 25, 2022 @03:13AM (#34125345)
There's a spec proposal for precisely that. It's in Colour Level... 6, I believe? https://developer.mozilla.org/en-US/docs/Web/CSS/color_value...
Re:Things CSS Could Still Use Heading into 2023 by psygn89 on Monday December 26, 2022 @12:07AM (#34134776)
Awesome! Thanks for letting me know.