mirror of
https://github.com/servo/servo.git
synced 2025-10-01 00:59:15 +01:00
Move position_fixed_a.html to wpt reftests.
This commit is contained in:
parent
2c4232b620
commit
91d798cbd6
4 changed files with 25 additions and 1 deletions
|
@ -3559,6 +3559,18 @@
|
|||
"url": "/_mozilla/css/position_abs_width_percentage_a.html"
|
||||
}
|
||||
],
|
||||
"css/position_fixed_a.html": [
|
||||
{
|
||||
"path": "css/position_fixed_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/position_fixed_b.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/position_fixed_a.html"
|
||||
}
|
||||
],
|
||||
"css/position_fixed_background_color_a.html": [
|
||||
{
|
||||
"path": "css/position_fixed_background_color_a.html",
|
||||
|
@ -9294,6 +9306,18 @@
|
|||
"url": "/_mozilla/css/position_abs_width_percentage_a.html"
|
||||
}
|
||||
],
|
||||
"css/position_fixed_a.html": [
|
||||
{
|
||||
"path": "css/position_fixed_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/position_fixed_b.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/position_fixed_a.html"
|
||||
}
|
||||
],
|
||||
"css/position_fixed_background_color_a.html": [
|
||||
{
|
||||
"path": "css/position_fixed_background_color_a.html",
|
||||
|
|
44
tests/wpt/mozilla/tests/css/position_fixed_a.html
Normal file
44
tests/wpt/mozilla/tests/css/position_fixed_a.html
Normal file
|
@ -0,0 +1,44 @@
|
|||
<html>
|
||||
<head>
|
||||
<link rel=match href=position_fixed_b.html>
|
||||
<style>
|
||||
.container {
|
||||
display: block;
|
||||
background: blue;
|
||||
}
|
||||
.fixed_block {
|
||||
background: green;
|
||||
position: fixed;
|
||||
}
|
||||
.positioned_fixed_block {
|
||||
background: yellow;
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
right: 25px;
|
||||
}
|
||||
.sized_fixed_block {
|
||||
background: red;
|
||||
position: fixed;
|
||||
height: 50px;
|
||||
width: 50px;
|
||||
left: 5px;
|
||||
right: 10px;
|
||||
top: 100px;
|
||||
bottom: 30px;
|
||||
}
|
||||
.stretched_fixed_block {
|
||||
position: fixed;
|
||||
background: black;
|
||||
top: 100px;
|
||||
bottom: 30px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="fixed_block"> fixed block </div>
|
||||
<div class="positioned_fixed_block"> positioned fixed block </div>
|
||||
<div class="sized_fixed_block"> sized fixed block </div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
43
tests/wpt/mozilla/tests/css/position_fixed_b.html
Normal file
43
tests/wpt/mozilla/tests/css/position_fixed_b.html
Normal file
|
@ -0,0 +1,43 @@
|
|||
<html>
|
||||
<head>
|
||||
<style>
|
||||
.container {
|
||||
display: block;
|
||||
background: blue;
|
||||
}
|
||||
.fixed_block {
|
||||
background: green;
|
||||
position: fixed;
|
||||
}
|
||||
.positioned_fixed_block {
|
||||
background: yellow;
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
right: 25px;
|
||||
}
|
||||
.sized_fixed_block {
|
||||
background: red;
|
||||
position: fixed;
|
||||
height: 50px;
|
||||
width: 50px;
|
||||
left: 5px;
|
||||
right: 10px;
|
||||
top: 100px;
|
||||
bottom: 30px;
|
||||
}
|
||||
.stretched_fixed_block {
|
||||
position: fixed;
|
||||
background: black;
|
||||
top: 100px;
|
||||
bottom: 30px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="fixed_block"> fixed block </div>
|
||||
<div class="positioned_fixed_block"> positioned fixed block </div>
|
||||
<div class="sized_fixed_block"> sized fixed block </div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue