Move position_relative_top_percentage_a.html to wpt reftests.

This commit is contained in:
Corey Farwell 2015-10-16 09:23:25 -04:00
parent d2a27ee9bf
commit 98387ffc7c
4 changed files with 25 additions and 1 deletions

View file

@ -683,6 +683,18 @@
"url": "/_mozilla/css/flex_nochild.html"
}
],
"css/position_relative_top_percentage_a.html": [
{
"path": "css/position_relative_top_percentage_a.html",
"references": [
[
"/_mozilla/css/position_relative_top_percentage_b.html",
"=="
]
],
"url": "/_mozilla/css/position_relative_top_percentage_a.html"
}
],
"css/position_relative_vertical_percentage_overflow_a.html": [
{
"path": "css/position_relative_vertical_percentage_overflow_a.html",
@ -3060,6 +3072,18 @@
"url": "/_mozilla/css/flex_nochild.html"
}
],
"css/position_relative_top_percentage_a.html": [
{
"path": "css/position_relative_top_percentage_a.html",
"references": [
[
"/_mozilla/css/position_relative_top_percentage_b.html",
"=="
]
],
"url": "/_mozilla/css/position_relative_top_percentage_a.html"
}
],
"css/position_relative_vertical_percentage_overflow_a.html": [
{
"path": "css/position_relative_vertical_percentage_overflow_a.html",

View file

@ -0,0 +1,26 @@
<html>
<head>
<link rel='match' href='position_relative_top_percentage_b.html'>
<style>
#first {
width: 100px;
height: 100px;
border: solid 10px;
}
#rel {
position: relative;
left: 50%;
top: 50%;
width: 50px;
height: 50px;
background: green;
}
</style>
</head>
<body>
<div id="first">
<div id="rel">
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,28 @@
<html>
<head>
<style>
#first {
width: 100px;
height: 100px;
border: solid 10px;
}
.box {
width: 50px;
height: 50px;
}
#green_square {
height: 50px;
width: 50px;
margin-left: 50px;
background: green;
}
</style>
</head>
<body>
<div id="first">
<div class="box"></div>
<div id="green_square">
</div>
</div>
</body>
</html>