W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2019

Re: [csswg-drafts] [css-images-4] Fix gradient color stop syntax (#3657)

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Wed, 20 Feb 2019 15:29:59 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-465626058-1550676597-sysbot+gh@w3.org>
@fantasai That's a good question. [I just tested it](https://codepen.io/AmeliaBR/full/f0ce61aa57da3a3793738c8039e1631a) in Chrome, Edge, and Firefox, and none support the length value before the color.

The Git blame isn't helping me find a reason, either. The `&&` syntax goes back to the [first commit for Images 4](https://github.com/w3c/csswg-drafts/commit/c0bb64d19fd683b4352e929545eaa27facc5aa15#diff-d391915319a8fcf35f6ad0aa2b4aa8c1R673).

As an author, I wouldn't mind having the extra flexibility.  I've made the mistake of writing it in the wrong order & then having to debug why my gradient wasn't showing up.

But we'd need commitments to actually implement it — maybe at the same time as implementing the two-value syntax? But then we'd need to discuss whether `blue, 20px green 30px, blue` is a valid two-value form.

So maybe that's a separate issue? 

GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/pull/3657#issuecomment-465626058 using your GitHub account
Received on Wednesday, 20 February 2019 15:30:00 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:44 UTC