[css-images-4] Allow stripes to be used as gradients
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by reading this issue together with the linked CSSWG issue #2532 and related issue #7241. Compare the three gradient-based proposals and establish which syntax the specification should adopt; done means the CSS Images 4 proposal is resolved and documented with agreed examples and behavior.
Written by the indexing model from the issue text.
Description
In https://github.com/w3c/csswg-drafts/issues/2532 it was discussed to allow one-dimensional images in two-dimensional contexts. Lately it was resolved to discuss this feature separately from the original use case of one-dimensional images.
So far, there were four ideas to achieve that. The direct way of adding <1d-image> to <image> is discussed in #7241. The other three all have in common that they refer to gradients or gradient-like funcions. I've summarized them here (in the order they were mentioned) including their pros and cons:
-
Add
<1d-image>to existing gradient functionsExamples:
background-image: linear-gradient(45deg, stripes(red, yellow, lime, blue)); shape-outside: radial-gradient(stripes(black, transparent 20%)); background-image: linear-gradient(45deg, black, stripes(red, yellow, lime, blue) 100px, white);Pros:
- Existing gradient functionality is reused
- Syntax is reused in different contexts
- Besides linear stripes also radial and conical stripes and their repeating variants possible
- Allows mixing stripes and gradients
Cons:
- Nested functions
- Semantically incorrect
-
Create separate stripes functions
background-image: linear-stripes(45deg, red, yellow, lime, blue); shape-outside: radial-stripes(black, transparent 20%);Pros:
- Similar to gradients without nesting
Cons:
- Behavior of thickness different to length in gradients
- No reuse of
<1d-image>
-
Add keyword to existing gradient functions
background-image: linear-gradient(45deg stripes, red, yellow, lime, blue); shape-outside: radial-gradient(stripes, black, transparent 20%);Pros:
- Existing gradient functionality is reused
- No nesting
Cons:
- Behavior of thickness different to length in gradients
- No reuse of
<1d-image>
Sebastian
- Dominant language
- Bikeshed
- Stars
- 4.9k
- Forks
- 816
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 24
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from w3c/csswg-drafts
-
Agenda+ css-sizing-4 css-values-5
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
w3c/csswg-drafts#14502 · 1 reaction ·
-
css-values-5 editorial Needs Edits
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
w3c/csswg-drafts#14498 · 2 comments ·
-
css-overflow-4 topic: line-clamp
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
w3c/csswg-drafts#14485 · 1 comment ·
-
Administrative Tracker css-values-4
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
w3c/csswg-drafts#14482 · 4 comments · 1 reaction ·
-
css-values-5 Needs Edits
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
w3c/csswg-drafts#14466 ·
All issues in w3c/csswg-drafts
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
tvOS
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
bvaughn/react-resizable-panels#751 · 1 comment ·
-
www.wiwo.de OpenN: AdGuard Browser Extension P3: Medium T: Annoyance
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
AdguardTeam/AdguardFilters#242026 ·
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 92/100