
Reblogged by collinsworth@hachyderm.io ("Josh Collinsworth"):
5t3ph@front-end.social ("Stephanie Eckles") wrote:
📝 New post:
Providing Type Definitions for #CSS with [@]property
A cross-browser feature as of the release of Firefox 128 in July 2024 is a new at-rule - [@]property - which allows defining types as well as inheritance and an initial value for your custom properties.
Learn when and why traditional fallback values can fail, and how [@]property features allow us to write safer, more resilient CSS custom property definitions.
https://moderncss.dev/providing-type-definitions-for-css-with-at-property/