Re: [csswg-drafts] [css-syntax][css-shapes] Repeating segments in `shape()` (and perhaps as a generic thing?) (#13862)

Got it, that makes sense. Thank you!

If we included an index for the repeat function, like we have `r` `g` `b` etc for color math functions, it would be extremely useful in many places - like increasing animation-delay for a sequence of animations, doing calc() math to change what direction a text or box shadow is offset in while repeating the core exactly each time, etc

It changes the implementation pretty drastically to support it though, then it's one step away from full blown for loops rather than trivial duplication. But even for loops are possible with today's @ function:
https://codepen.io/propjockey/pen/ZYBQzzO

-- 
GitHub Notification of comment by JaneOri
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13862#issuecomment-4402012354 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 7 May 2026 23:56:40 UTC