w3c / w3c/csswg-drafts

[css-borders-4] Move `<image-1D>` to `border-image-source`

Open
#9,735 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-borders-4
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

At the moment, <image-1D> and with it the stripes() function are part of border-color. Though that always felt a bit weird to me because author's are familiar with -color properties defining colors, not images.
So I mentioned at some point that we should rather add this functionality to border-image-source instead.

This probably requires being able to turn off the image slicing, see #9734.

If we define that slicing doesn't have any effect on <image-1D> values, one could simply define stripes like that:

border-image: stripes(red, yellow, green, blue);

Sebastian

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the CSS Borders 4 definitions for border-color and border-image-source, then read the linked issue #9734 about disabling image slicing. Compare the proposed stripes() example with the current specification structure; done means the placement and slicing behavior are resolved in the draft with matching normative wording and examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.