JSFiddle - React, Tailwind, and code Playground

by mstalfoort

HTML

<div class="test1"></div>
<div class="test2"></div>

CSS

html, body {
    background: #000;
}
.test1, .test2 {
    width: 10px;
    height: 10px;
    background: #fff;
    border: 100px solid #000;
    -moz-border-radius: 100px;
    border-radius: 100px;
}
.test2 {
    background-clip: padding-box;
}

JavaScript

/*
If you're using border-radius, always give the element background-clip: padding-box; Else the bg & border fight over antialiased pixels

That antialiasing issue is fixed in most modern browsers, but still exists on older browsers, mobiles & Opera. See http://jsfiddle.net/FQbQp/1/
*/