mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 12:06:07 +00:00
Tests: Add screenshot test for the background SVG in the LB website
This commit is contained in:
parent
635adc8aa7
commit
4711c38aa1
Notes:
github-actions[bot]
2025-07-09 17:08:22 +00:00
Author: https://github.com/ananas-dev
Commit: 4711c38aa1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5028
Reviewed-by: https://github.com/gmta ✅
3 changed files with 32 additions and 0 deletions
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
}
|
||||
body {
|
||||
background-color: white;
|
||||
}
|
||||
</style>
|
||||
<img src="../images/svg-filters-lb-website-ref.png">
|
BIN
Tests/LibWeb/Screenshot/images/svg-filters-lb-website-ref.png
Normal file
BIN
Tests/LibWeb/Screenshot/images/svg-filters-lb-website-ref.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 102 KiB |
22
Tests/LibWeb/Screenshot/input/svg-filters-lb-website.html
Normal file
22
Tests/LibWeb/Screenshot/input/svg-filters-lb-website.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="../expected/svg-filters-lb-website-ref.html" />
|
||||
<svg width="714" height="749" viewBox="0 0 714 749" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g filter="url(#filter0_f_27_183)">
|
||||
<circle cx="88.5" cy="100.5" r="278.5" fill="#8A64E5" fill-opacity="0.21"/>
|
||||
</g>
|
||||
<g filter="url(#filter1_f_27_183)">
|
||||
<circle cx="301.5" cy="336.5" r="162.5" fill="#6D98CC" fill-opacity="0.31"/>
|
||||
</g>
|
||||
<defs>
|
||||
<filter id="filter0_f_27_183" x="-440" y="-428" width="1057" height="1057" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
||||
<feGaussianBlur stdDeviation="125" result="effect1_foregroundBlur_27_183"/>
|
||||
</filter>
|
||||
<filter id="filter1_f_27_183" x="-111" y="-76" width="825" height="825" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
||||
<feGaussianBlur stdDeviation="125" result="effect1_foregroundBlur_27_183"/>
|
||||
</filter>
|
||||
</defs>
|
||||
</svg>
|
Loading…
Add table
Add a link
Reference in a new issue