View these both in Internet Explorer.
How come they both look different?
Html one is all messed up, while the css one looks fine.
Why is this?
If they are both the same code?
Left is CSS / Right is Html
CSS
.crossed {
width: 266px;
height: 266px;
border: 3px solid red;
background:
linear-gradient(to top left,
rgba(0,0,0,0) 0%,
rgba(0,0,0,0) calc(50% - 3px),
rgba(0,255,0,1) 50%,
rgba(0,0,0,0) calc(50% + 3px),
rgba(0,0,0,0) 100%),
linear-gradient(to top right,
rgba(0,0,0,1) 0%,
rgba(0,0,0,1) calc(50% - 3px),
rgba(0,0,255,1) 50%,
rgba(0,0,0,1) calc(50% + 3px),
rgba(0,0,0,1) 100%);
<div class="crossed"></div>
HTML
<div style="width: 266px; height: 266px; border: 3px solid red; background: linear-gradient(to top left, rgba(0,0,0,0) 0%, rgba(0,0,0,0) calc(50% - 3px), rgba(0,255,0,1) 50%, rgba(0,0,0,0) calc(50% + 3px), rgba(0,0,0,0) 100%), linear-gradient(to top right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) calc(50% - 3px), rgba(0,0,255,1) 50%, rgba(0,0,0,1) calc(50% + 3px), rgba(0,0,0,1) 100%);255,255,1) 50%, rgba(0,0,0,0) calc(50% + 3px), rgba(0,0,0,0) 100%);"></div>