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

The idea is to let one-dimensional images work in both one-dimensional and two-dimensional contexts.
In 1D contexts like `border-color` and `outline-color` they are context-sensitive.
In 2D contexts they are horizontal by default. We could additionally define a 2D variant of that function that allows rotating them. Though as [pointed out earlier](https://github.com/w3c/csswg-drafts/issues/2532#issuecomment-1040505437) by @LeaVerou, the plan is to also allow 1D images in gradient functions. So re-orientation would be done via `linear-gradient()`.  Another way to achieve that is the `@image` rule suggested in https://github.com/w3c/csswg-drafts/issues/6807.

So I wonder whether a separate 2D stripes function would be worth the redundancy. We might remove `<1d-image>` from direct usage in `<image>`, though, and already 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-1104836974 using your GitHub account


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

Received on Thursday, 21 April 2022 07:56:26 UTC