LeaVerou / LeaVerou/conic-gradient
repeating gradient slices not equal
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 484
- Forks
- 56
- PR merge metrics
- No merged PRs in 30d
Description
My code looks like this:
$a: 4%;
background: repeating-conic-gradient(#000 0 .5*$a, transparent 0 $a);
Expected result: all slices, whether they're black or transparent should be equal (to 2% of 360deg, which is 7.2deg).
Actual result: they're different (test) and the issue is particularly obvious in the 0/ 360deg area.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Reproduce the unequal slices and the visible discrepancy at the 0/360deg boundary using the linked CodePen and the SCSS example. Trace the conic-gradient polyfill's repeating-gradient handling, then verify that black and transparent slices each occupy 2% of the circle, including across the wraparound boundary.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100