Covers how to define multiple syntax component types in a CSS @property at-rule using the '|' combinator. When a custom property is used with line-height (which accepts both numbers and lengths), restricting the syntax to a single type breaks transitions. By combining types like '<number> | <length-percentage>' in the syntax descriptor, the custom property accepts both value types while still enabling CSS transitions.

2m read timeFrom matuzo.at
Post cover image
2 Impressions