mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-22 02:26:11 +00:00
Tests/LibWeb: Add ref test for clip-path: polygon(...)
This commit is contained in:
parent
9e2c4f84fd
commit
18d39deefe
24
Tests/LibWeb/Ref/clip-path-polygon.html
Normal file
24
Tests/LibWeb/Ref/clip-path-polygon.html
Normal 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>
|
9
Tests/LibWeb/Ref/reference/clip-path-polygon-ref.html
Normal file
9
Tests/LibWeb/Ref/reference/clip-path-polygon-ref.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
}
|
||||
body {
|
||||
background-color: white;
|
||||
}
|
||||
</style>
|
||||
<img src="./images/clip-path-polygon-ref.png">
|
BIN
Tests/LibWeb/Ref/reference/images/clip-path-polygon-ref.png
Normal file
BIN
Tests/LibWeb/Ref/reference/images/clip-path-polygon-ref.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 171 B |
Loading…
Reference in a new issue