JSFiddle - React, Tailwind, and code Playground
HTML
<div id="thinLinesInFirefox">testing</div>
CSS
body {
background-color: red;
}
#thinLinesInFirefox {
width: 200px;
height: 200px;
margin-top: 50px;
margin-left: 50px;
background-color: #396E97;
-webkit-transform:rotate(4deg); /* Chrome and Safari */
-moz-transform:rotate(4deg); /* Firefox */
/* When the 4 sides are different there are cracks in border. */
border-top: 105px;
border-right: 110px;
border-bottom: 115px;
border-left: 120px;
/* Define border-style before border-class per CSS rule. */
border-style: dashed;
/* Define boder-color */
border-color: black;
}
#thinLinesInFirefox:before {
content: '';
display: block;
width: 201px;
height: 201px;
position: absolute;
top: -105px;
left: -120px;
border-top: 104px;
border-right: 110px;
border-bottom: 115px;
border-left: 119px;
/* Define border-style before border-class per CSS rule. */
border-style: solid;
/* Define boder-color */
border-color: black;
z-index: -1;
}