I set up a div, the orange one
position:relative
and an SVG container absolutely positioned at the bottom. The SVG is just a triangle path in the middle of a 10x700 viewport
<div class="sections-divider bottom">
<svg class="tiny" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 10" preserveAspectRatio="none">
<path fill="rgba(255, 255, 255, 1)" d="M360 0L350 10 340 0 0 0 0 10 700 10 700 0"></path>
</svg>
</div>
CSS code:
/* Sections Separator */
.sections-divider {
position: absolute;
left: 0;
width: 100%;
display: flex;
}
.sections-divider svg { width: 100%; height: 100%}
.sections-divider.bottom {bottom: 0; top: auto}
Sometimes, not always, during page rendering, the SVG is not exactly at the bottom, it's some 0.8pixels on top, and an orange line of the bottom div can be seen, like the screenshot attached. This happens especially when chrome dev tools are open.
I tried almost everything.
The problem is that if I do
bottom: -1px
the orange line disappears, but the triangle's bottom corner is cut by 1 pixel and became a trapezium
Am I missing something?
Thanks
