L
L
LastGeneral2020-05-07 15:01:35
css
LastGeneral, 2020-05-07 15:01:35

How to remove border from clip-path?

I use clip-path, but a strange line appears, I don’t know what it can give and how can I remove it?
5eb3f832e71e7880281426.png
Tried to change anyway it is
5eb3f8553cc05723504849.png

https://codepen.io/constantin-andreevich/pen/BaoYExj

-webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 25%);
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 25%);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
origami1024, 2020-05-07
@LastGeneral

This is a display bug in chrome, you can solve it by dancing with block sizes, for example:

.block2 { 
  margin-top: -1px;
  border-top: 1px solid black;
}

P.S. my line appeared only during window resizing

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question