mirror of
https://github.com/servo/servo.git
synced 2025-10-01 09:09:15 +01:00
Move position_fixed_static_y_a.html to wpt reftests.
This commit is contained in:
parent
9b7864aa1a
commit
03d5db9e12
4 changed files with 25 additions and 2 deletions
|
@ -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",
|
||||
|
|
41
tests/wpt/mozilla/tests/css/position_fixed_static_y_a.html
Normal file
41
tests/wpt/mozilla/tests/css/position_fixed_static_y_a.html
Normal 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>
|
35
tests/wpt/mozilla/tests/css/position_fixed_static_y_b.html
Normal file
35
tests/wpt/mozilla/tests/css/position_fixed_static_y_b.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue