Move position_fixed_static_y_a.html to wpt reftests.

This commit is contained in:
Ms2ger 2015-12-02 14:11:06 +01:00
parent 9b7864aa1a
commit 03d5db9e12
4 changed files with 25 additions and 2 deletions

View file

@ -3607,6 +3607,18 @@
"url": "/_mozilla/css/position_fixed_simple_a.html"
}
],
"css/position_fixed_static_y_a.html": [
{
"path": "css/position_fixed_static_y_a.html",
"references": [
[
"/_mozilla/css/position_fixed_static_y_b.html",
"=="
]
],
"url": "/_mozilla/css/position_fixed_static_y_a.html"
}
],
"css/position_fixed_tile_edge.html": [
{
"path": "css/position_fixed_tile_edge.html",
@ -9366,6 +9378,18 @@
"url": "/_mozilla/css/position_fixed_simple_a.html"
}
],
"css/position_fixed_static_y_a.html": [
{
"path": "css/position_fixed_static_y_a.html",
"references": [
[
"/_mozilla/css/position_fixed_static_y_b.html",
"=="
]
],
"url": "/_mozilla/css/position_fixed_static_y_a.html"
}
],
"css/position_fixed_tile_edge.html": [
{
"path": "css/position_fixed_tile_edge.html",

View file

@ -0,0 +1,41 @@
<html>
<head>
<link rel=match href=position_fixed_static_y_b.html>
<style>
html, body {
margin-left: 0px;
margin-right: 0px;
}
body {
margin-top: 100px;
}
#first {
position: relative;
width: 90px;
height: 90px;
border: solid 1px;
}
#second {
width: 30px;
height: 30px;
}
#fixed {
position: fixed;
left: 30px;
right: 30px;
width: 100px;
height: 20px;
background: green;
}
</style>
</head>
<body>
<div id="first">
<div id="second">
</div>
<!-- This should be at its static y position (inside #first, after #second) -->
<div id="fixed">
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,35 @@
<html>
<head>
<style>
html, body {
margin-left: 0px;
margin-right: 0px;
}
body {
margin-top: 100px;
}
#first {
width: 90px;
height: 90px;
border: solid 1px;
}
.row {
width: 90px;
height: 30px;
}
.center {
margin-left: 29px;
height: 20px;
width: 100px;
background: green;
}
</style>
</head>
<body>
<div id="first">
<div class="row"></div>
<div class="center">
</div>
</div>
</body>
</html>