# Conical gradients, today!

DevFeed: [Conical gradients, today!](<https://devfeed.tech/articles/conical-gradients-today-52087.md>)

Original publisher: [Read original article](<https://lea.verou.me/2015/06/conical-gradients-today/>)

Author: Lea Verou

Published: 2015-06-18T00:00:00Z

Content type: release

Language: en

Sources: [Lea Verou's blog](<https://devfeed.tech/sources/lea-verou-s-blog.md>)

Topics: [web graphics](<https://devfeed.tech/topics/web-graphics.md>), [polyfill](<https://devfeed.tech/topics/polyfill.md>), [browser](<https://devfeed.tech/topics/browser.md>), [SVG](<https://devfeed.tech/topics/svg.md>), [Google Chrome](<https://devfeed.tech/topics/google-chrome.md>)

Tags: [blog](<https://devfeed.tech/tags/blog.md>), [browsers](<https://devfeed.tech/tags/browsers.md>), [conic-gradient](<https://devfeed.tech/tags/conic-gradient.md>), [css](<https://devfeed.tech/tags/css.md>), [css-wg](<https://devfeed.tech/tags/css-wg.md>), [developers](<https://devfeed.tech/tags/developers.md>), [implementing](<https://devfeed.tech/tags/implementing.md>), [original](<https://devfeed.tech/tags/original.md>), [pie-charts](<https://devfeed.tech/tags/pie-charts.md>), [polyfill](<https://devfeed.tech/tags/polyfill.md>), [releases](<https://devfeed.tech/tags/releases.md>)

## AI overview

The author argues that conical gradients remained unimplemented partly because developers rarely requested them and because Cairo lacked support; Cairo's later mesh-gradient support removed that drawing limitation. A conical gradient can create a round pie chart with one background declaration, as in `conic-gradient(gold 40%, #f06 0)`. The author released a polyfill and urges developers to submit or vote on browser bug reports, concentrate requests where browser teams will see them, and explain practical use cases. The excerpt presents developer demand as influential, not as a guarantee of implementation.

## Source excerpt

It's no secret that I like conical gradients. In as early as 2011, I wrote a draft for conical-gradient() in CSS, that Tab later said helped him when he added them in CSS Image Values Level 4 in 2012. However, almost three years later, no progress has been made in implementing them. Sure, the spec is still relatively incomplete, but that's not the reason conical gradients have gotten no traction. Far more underspecified features have gotten experimental implementations in the past. The reason conical gradients are still unimplemented, is because very few developers know they exist, so browsers see no demand. Another reason was that Cairo, the graphics library used in Chrome and Firefox had no way of drawing a conical gradient. However, this changed a while ago, when they supported mesh gradients, of which conical gradients are a mere special case. Recently, I was giving a talk on creating pie charts with CSS on a few conferences, and yet again, I was reminded of how useful conical gradients can be. While every CSS or SVG solution is several lines of code with varying levels of hackiness, conical gradients can give us a pie chart with a straightforward, DRY, one liner. For example, this is how to create a pie chart that shows 40% in gold and 60% in #f06: padding: 5em; /* size */ background: conic-gradient(gold 40%, #f06 0); border-radius: 50%; /* make it round */ So, I decided to take matters in my own hands. I wrote a polyfill, which I also used in my talk to demonstrate how awesome conical gradients can be and what cool things they can do. Today, during my CSSConf talk, I released it publicly. In addition, I mention to developers how important speaking up is for getting their favorite features implemented. Browsers prioritize which features to implement based on what developers ask for. It's a pity that so few of us realize how much of a say we collectively have in this. This is more obvious with Microsoft and their Uservoice forum where developers can vote on whic