Tests/LibWeb: Add ref test for clip-path: polygon(...)

This commit is contained in:
MacDue 2024-05-26 00:34:10 +01:00 committed by Andreas Kling
parent 9e2c4f84fd
commit 18d39deefe
3 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,24 @@
<link rel="match" href="reference/clip-path-polygon-ref.html" />
<style>
.comment {
position: absolute;
left: 20px;
width: 100px;
height: 50px;
border: 1px solid black;
}
.comment::before {
position: absolute;
right: 100%;
width: 8px;
height: 16px;
pointer-events: none;
content: " ";
background-color: black;
clip-path: polygon(0 50%, 100% 0, 100% 100%);
}
</style>
<div class=comment></div>

View file

@ -0,0 +1,9 @@
<style>
* {
margin: 0;
}
body {
background-color: white;
}
</style>
<img src="./images/clip-path-polygon-ref.png">

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B