Issue with Pseudo class before not displaying background colour in Safari browser
To view the code, please visit the following link here
HTML
<div id='test'>
<p>Test </p>
</div>
CSS
#test {
position: relative;
perspective: 240px;
width: 500px;
}
#test p {
position: relative;
}
#test::before {
content: '';
position: absolute;
top: -5px;
bottom: -5px;
left: 0;
right: 0;
line-height: 27px;
border: 1px solid #D4E7D1;
background: #E4F7E1;
border-radius: 5px 5px 0 0;
transform: rotateX(45deg);
}
[Displays correctly in Chrome][1] [1]: https://i.sstatic.net/iEfy0.png [Does not display correctly in Safari][2] [2]: https://i.sstatic.net/rFsBP.png