Skip to content

Instantly share code, notes, and snippets.

@firefoxic
Last active November 18, 2020 09:14
Show Gist options
  • Save firefoxic/e78c7f10a7bbab5131b13b762f5fc9ac to your computer and use it in GitHub Desktop.
Save firefoxic/e78c7f10a7bbab5131b13b762f5fc9ac to your computer and use it in GitHub Desktop.
Simple pie chart with fallback (no variables)
/**
* Simple pie chart with fallback (no variables)
*/
.pie {
height: 20px;
background: linear-gradient(to right, #fe7b99 , #1b3b4e);
background-color: gold;
}
@supports (background: conic-gradient(white, black)) {
.pie {
width: 200px; height: 200px;
background-image: conic-gradient(deeppink 40%, transparent 0);
border-radius: 50%;
}
}
<div class="pie"></div>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment