Here is an example I created:
div {
-webkit-clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
background-color: red;
width: 150px;
height: 150px;
position: relative;
}
ul{
position: absolute;
background-color: green;
left: 30px;
top: 50px;
}
<div>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
<li>7</li>
<li>8</li>
<li>9</li>
<li>10</li>
</ul>
</div>
The clip path property causes the behavior of the div
to always be like overflow:hidden
, making it so that the list elements in the <ul>
are not fully visible.
Is there a way to make all the items in the <ul>
visible?