Microsoft Edge does not render the style well

I have an oval with css, in Chrome render well, but in Microsoft Edge doesn't. Here are my pics about that:

EDGE

enter image description here

CHROME or Firefox

enter image description here

This is my class:

.ovalo {
  margin-left: -3.2rem;
  top: 4px;
  position: absolute;
  background: #343434;
  background-repeat: repeat;
  border-width: thin 10px;
  transition: all;
  border-radius: 150px;
  -webkit-border-radius: 10 50% / 0 100%;
  -moz-border-radius: 0 50% / 0 100%;
  height: 100px;
  width: 80%;
  border: 4px solid #343434;
  overflow: hidden;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
<div class="ovalo"></div>

Upvotes: 0

Views: 168

Answers (1)

Mobarak Ali
Mobarak Ali

Reputation: 760

border-radius: 150px;
-webkit-border-radius: 10 50% / 0 100%;
-moz-border-radius: 0 50% / 0 100%;

This code is culprit for that display. This should be same to render properly across all browser. In-fact you can trim all those browser prefix just put border-radius: valu will be ok on over 98% browsers on Earth! Here is proof.

Upvotes: 1

Related Questions