Re: [csswg-drafts] [css-background-4] Issues with listifying border-color (#2532)

> > > Yes, 1 dimensional images are still `<image>`.
> > 
> > I assume by that you mean to add `stripes()` to `<image>` but in properties like `border-color` and `outline-color` only `stripes()` is allowed, not the whole `<image>` syntax, right?
> 
> These properties should accept a 1 dimensional image, not `stripes()` specifically. That way, we can add more forms for creating 1 dimensional images in the future or functions that operate on them and not have to update a bunch of grammars. In general, defining input in terms of types is better than defining it in terms of syntax.

Good point! I've changed the definition accordingly.

> Just to be clear, `stripes()` in `linear-gradient()` (or `radial-gradient()`, or `conic-gradient()`) would get the directionality of the gradient. The default directionality we are discussing here only applies when a 1 dimensional image is used by itself in contexts that expect a 2d image. E.g. when you do `background: stripes(...);`.

Yes, that's also how I expected it to work. Thanks for clarifying that! Once the function is added, I'll create a new issue to add it to the gradient functions.

Sebastian

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


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

Received on Wednesday, 20 April 2022 12:13:17 UTC