Encountering a bug in Firefox with my mirrored diagonal background pattern. A vertical line appearing between left and right positioned elements at certain screen widths. Seeking a CSS solution or hack, no linked image files allowed.
.stripes-background {
width: 50%;
margin:0 auto;
padding: 2em;
position: relative;
overflow:hidden;
border-radius:3px;
}
.stripes-diagonal-left {
background-color: #333333;
background-image: repeating-linear-gradient(
25deg,
transparent,
transparent 20px,
rgba(255, 255, 255, 0.05) 20px,
rgba(255, 255, 255, 0.05) 40px
);
position: absolute;
top: 0;
width: 50%;
height: 105%;
z-index: -2;
left: 0;
}
.stripes-diagonal-right {
background-color: #333333;
background-image: repeating-linear-gradient(
25deg,
transparent,
transparent 20px,
rgba(255, 255, 255, 0.05) 20px,
rgba(255, 255, 255, 0.05) 40px
);
position: absolute;
top: 0;
width: 50%;
height: 105%;
z-index: -2;
transform: rotateY(180deg);
left: 50%;
}
<div class="stripes-background">
<div class="stripes-diagonal-left" role="presentation"></div>
<div class="stripes-diagonal-right" role="presentation"></div>
</div>