forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Base: Add test page for the 'background-repeat' property
This page tests the following values for background-repeat: repeat, repeat-x, repeat-y, no-repeat The test is duplicated for the <body> node and for child <div> nodes, because the code that paints these nodes are in separate locations.
- Loading branch information
1 parent
2601441
commit fcfeada
Showing
7 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<style> | ||
body { | ||
background: white url("background-repeat.png") no-repeat; | ||
} | ||
</style> | ||
<body></body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<style> | ||
body { | ||
background: cyan; | ||
} | ||
iframe { | ||
width: 200px; | ||
height: 200px; | ||
} | ||
.float { | ||
float: left; | ||
} | ||
.background { | ||
background: white url(background-repeat.png); | ||
width: 200px; | ||
height: 200px; | ||
} | ||
</style> | ||
<body> | ||
<h1>Body Background</h1> | ||
<div style="overflow: hidden"> | ||
<div class=float> | ||
<h2>repeat</h2> | ||
<iframe src="background-repeat.html"></iframe> | ||
|
||
<h2>repeat-x</h2> | ||
<iframe src="background-repeat-x.html"></iframe> | ||
</div> | ||
<div class=float> | ||
<h2>no-repeat</h2> | ||
<iframe src="background-no-repeat.html"></iframe> | ||
|
||
<h2>repeat-y</h2> | ||
<iframe src="background-repeat-y.html"></iframe> | ||
</div> | ||
</div> | ||
|
||
<h1>Element Background</h1> | ||
<div style="overflow: hidden"> | ||
<div class=float> | ||
<h2>repeat</h2> | ||
<div class=background style="background-repeat: repeat"></div> | ||
|
||
<h2>repeat-x</h2> | ||
<div class=background style="background-repeat: repeat-x"></div> | ||
</div> | ||
<div class=float> | ||
<h2>no-repeat</h2> | ||
<div class=background style="background-repeat: no-repeat"></div> | ||
|
||
<h2>repeat-y</h2> | ||
<div class=background style="background-repeat: repeat-y"></div> | ||
</div> | ||
</div> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<style> | ||
body { | ||
background: white url("background-repeat.png") repeat-x; | ||
} | ||
</style> | ||
<body></body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<style> | ||
body { | ||
background: white url("background-repeat.png") repeat-y; | ||
} | ||
</style> | ||
<body></body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<style> | ||
body { | ||
background: white url("background-repeat.png") repeat; | ||
} | ||
</style> | ||
<body></body> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters