Move vertical_align_top_bottom_a.html to wpt reftests.

This commit is contained in:
Corey Farwell 2015-10-13 23:15:01 -04:00
parent ff57bd5d26
commit 18590c5b9b
4 changed files with 25 additions and 1 deletions

View file

@ -603,6 +603,18 @@
"url": "/_mozilla/css/stacking_context_rtl.html"
}
],
"css/vertical_align_top_bottom_a.html": [
{
"path": "css/vertical_align_top_bottom_a.html",
"references": [
[
"/_mozilla/css/vertical_align_top_bottom_ref.html",
"=="
]
],
"url": "/_mozilla/css/vertical_align_top_bottom_a.html"
}
],
"css/vertical_align_top_span_a.html": [
{
"path": "css/vertical_align_top_span_a.html",
@ -1964,6 +1976,18 @@
"url": "/_mozilla/css/stacking_context_rtl.html"
}
],
"css/vertical_align_top_bottom_a.html": [
{
"path": "css/vertical_align_top_bottom_a.html",
"references": [
[
"/_mozilla/css/vertical_align_top_bottom_ref.html",
"=="
]
],
"url": "/_mozilla/css/vertical_align_top_bottom_a.html"
}
],
"css/vertical_align_top_span_a.html": [
{
"path": "css/vertical_align_top_span_a.html",

View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/ahem.css">
<link rel='match' href='vertical_align_top_bottom_ref.html'>
<style type="text/css">
body {
margin: 0;
font-size: 100px;
line-height: 1;
color: yellow;
}
div {
position: absolute;
top: 100px;
background-color: red;
}
.align-top {
color: green;
font-size: 20px;
vertical-align: top;
}
.align-bottom {
color: green;
font-size: 20px;
vertical-align: bottom;
}
</style>
</head>
<body>
<div><span class="align-top">X</span><span>X</span><span class="align-bottom">X</span></div>
</body>
</html>

View file

@ -0,0 +1,55 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body {
margin: 0;
}
.red1 {
background-color: red;
position: absolute;
left: 120px;
top: 100px;
width: 20px;
height: 80px;
}
.green1 {
background-color: green;
position: absolute;
left: 120px;
top: 180px;
width: 20px;
height: 20px;
}
.red2 {
background-color: red;
position: absolute;
top: 120px;
width: 20px;
height: 80px;
}
.green2 {
background-color: green;
position: absolute;
top: 100px;
width: 20px;
height: 20px;
}
.yellow {
background-color: yellow;
position: absolute;
left: 20px;
top: 100px;
width: 100px;
height: 100px;
}
</style>
</head>
<body>
<div class="red1"></div>
<div class="green1"></div>
<div class="yellow"></div>
<div class="red2"></div>
<div class="green2"></div>
</body>
</html>