mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +03:00
Tests/LibWeb: Add ref test for clip-path: polygon(...)
This commit is contained in:
parent
9e2c4f84fd
commit
18d39deefe
Notes:
sideshowbarker
2024-07-17 05:09:48 +09:00
Author: https://github.com/MacDue Commit: https://github.com/SerenityOS/serenity/commit/18d39deefe Pull-request: https://github.com/SerenityOS/serenity/pull/24446
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 New Issue
Block a user