April 25, 2020 01:29 pm GMT
Original Link: https://css-tricks.com/property/
@property
The @property
is totally new to me, but I see it’s headed to Chrome, so I suppose it’s good to know about!
There is a draft spec and an “intent to ship” document. The code from that document shows:
@property --my-property { syntax: "<color"; initial-value: green; inherits: false;}
That it’s the CSS exact-equivalent to a CSS.registerProperty()
, the JavaScript syntax for declaring CSS custom properties, also a new thing (under the Houdini umbrella, it seems).
The post @property appeared first on CSS-Tricks.
Original Link: https://css-tricks.com/property/
Share this article:
Tweet
View Full Article