LeaVerou / LeaVerou/conic-gradient

repeating gradient slices not equal

Open
#22 4 comments 0 reactions 0 assignees View on GitHub

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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.