1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 19:47:46 +00:00

Tests/LibWeb: Add ref test for SVG background without natural size

This commit is contained in:
MacDue 2023-12-29 10:31:00 +01:00 committed by Andreas Kling
parent 8c59f359eb
commit 7c162747ef
4 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,24 @@
<!doctype html>
<link rel="match" href="reference/svg-background-no-natural-size-ref.html" />
<style>
body {
background-color: white;
}
div {
border: 1px solid black;
height: 50px;
width: 50px;
background-repeat: no-repeat;
background-position: 50% 50%;
}
.svg-rect {
background-size: 34%;
background-image: url(assets/vertical-rect.svg);
}
img {
width: 100px;
padding: 10px;
}
</style>
<div class="svg-rect"></div>
<body><span></span><img src="assets/vertical-rect.svg">