-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradient stats #20
Comments
Most of this seems to be fairly straightforward:
|
Rel #20 Note: The color stop stats skip gradients with var() and calc() as those require proper parsing
Regarding "How many color stops do they use on average?" it's not clear what the value of I also see And it's not clear which JS property should be used for "How frequently are midpoints used?". {
"functions": {
"repeating-conic-gradient": 2,
"linear-gradient": 1
},
"properties": {
"background": 3
},
"two_positions": 0,
"hints": 0,
"hard_stops": 0,
"max_stops": null,
"avg_stops": null
} @LeaVerou can you clarify? |
I see max stops is not in the list of questions indeed. I still think it would be fun to see the distribution, or perhaps the max number of stops across the entire corpus, it's the same kind of fun statistic as max z-index or max specificity. I've just added code that tracks the gradient code as well so we can see what gradient has the most color stops. I suspect it will be generated but eh. 🤷🏽♀️ Hints and midpoints are the same thing; the former is CSS spec terminology and the latter Photoshop terminology. |
The text was updated successfully, but these errors were encountered: