I'm majorly excited for these two features to see more widespread browser support.
Once these are fully fit for use in production, I think they'll revolutionise how we author and think about CSS.
'Twas a great pleasure getting to dig into these for the CSS-Tricks Almanac.
#CSS #WebDev
Vale
A couple new bangers from @vale.rocks on upcoming features:
@function
css-tricks.com/almanac/rule...
@custom-media
css-tricks.com/almanac/rule...
Declan has a real knack for explaining complex things like these very, very clearly.
css-tricks.com
The @function at-rule defines CSS custom functions. These custom functions are reusable blocks of CSS that can accept arguments, contain complex logic, and return values based on that logic.