mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
LibWeb: Add ref test for background-repeat
This is adapted from one of our existing test pages.
This commit is contained in:
parent
d10f4a8590
commit
69afb43922
7 changed files with 93 additions and 0 deletions
38
Tests/LibWeb/Ref/css-background-repeat.html
Normal file
38
Tests/LibWeb/Ref/css-background-repeat.html
Normal file
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="match" href="reference/css-background-repeat-ref.html" />
|
||||
<style>
|
||||
body {
|
||||
background: cyan;
|
||||
}
|
||||
iframe {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
display: block;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.background {
|
||||
background: white url(assets/smiley.png);
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<iframe src="assets/background-repeat.html"></iframe>
|
||||
<iframe src="assets/background-repeat-x.html"></iframe>
|
||||
<iframe src="assets/background-no-repeat.html"></iframe>
|
||||
<iframe src="assets/background-repeat-y.html"></iframe>
|
||||
|
||||
<div class="background" style="background-repeat: repeat"></div>
|
||||
<div class="background" style="background-repeat: repeat-x"></div>
|
||||
<div class="background" style="background-repeat: no-repeat"></div>
|
||||
<div class="background" style="background-repeat: repeat-y"></div>
|
||||
<div class="background" style="background-repeat: repeat repeat"></div>
|
||||
<div class="background" style="background-repeat: repeat no-repeat"></div>
|
||||
<div class="background" style="background-repeat: no-repeat no-repeat"></div>
|
||||
<div class="background" style="background-repeat: no-repeat repeat"></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue