Post #2392949
2026-03-27 10:47 UTC
@AmeliaBR@front-end.social @leaverou@front-end.social That is already possible with the current syntax. See https://github.com/LeaVerou/blog/discussions/137#discussioncomment-16340589 for details :)
Replies (1)
-
@AmeliaBR@front-end.social 2026-03-27 15:20
@bramus@front-end.social @leaverou@front-end.social Oh, that does make sense & solves both use cases. Define the argument as a `` to cause any passed in values to be converted to an absolute length before use, but leave it untyped to use the token as specified. It's something that would need good notes & examples in the spec, but now I understand the reasoning, I agree that it's logical. Somewhat related: any progress on defining a CSS type notation for untyped custom properties etc? ?