- From: Temani Afif via GitHub <sysbot+gh@w3.org>
- Date: Wed, 22 Mar 2023 23:04:25 +0000
- To: public-css-archive@w3.org
@romainmenke Actually, I never thought about this but now I can see a lot of complex cases to consider 😅 The issue I can see is an example like `linear-gradient(red, blue ++50%, pink, green)`. If we first calculate all the color stops (including the pink one) we can easily find ourselves with the final value of `++50%` bigger that the value of `pink` and we will need another Fixup step which is not good. I think the suitable solution is to consider a relative color as static if there is no reference for it (no color stop is defined before it). The previous example will become `linear-gradient(red, blue 50%, pink, green)` then we do the color Fixup to get `linear-gradient(red 0%, blue 50%, pink 75%, green 100%)` So like you said "it first apply the relative value as if the previous color stop had a value of zero" sounds good to me. -- GitHub Notification of comment by Afif13 Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8616#issuecomment-1480365742 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 22 March 2023 23:04:27 UTC