- From: Temani Afif via GitHub <sysbot+gh@w3.org>
- Date: Mon, 20 Mar 2023 08:02:37 +0000
- To: public-css-archive@w3.org
@brandonmcconnell the idea is not using `++` as the operator. As explained by @romainmenke, one plus will the positive sign while the other is the incremental operator so in your last example we would use ```css background: linear-gradient(red 20%, blue +var(--default-shift), green +calc(var(--default-shift) * 2)); ``` Same logic with `--` but I won't focus on this part because incrementing is the only useful operation inside gradient since we always need to have bigger values. Smaller values are not useful that's why my proposal is only about "incremental syntax". It can also be another character like `~` to avoid confusion but in all the cases, the idea is to have an optional character to indicate if it's a static value or a relative one. The `shift()` function is good but .. a bit verbose 😅 I prefer a reduced syntax but if a function is the only way, I would take it. -- GitHub Notification of comment by Afif13 Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8616#issuecomment-1475776144 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 20 March 2023 08:02:39 UTC