Move vertical_align_text_top_a.html to wpt reftests.

This commit is contained in:
Corey Farwell 2015-10-13 23:21:16 -04:00
parent c71d9cdd51
commit a3d799e8c6
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_text_top_a.html": [
{
"path": "css/vertical_align_text_top_a.html",
"references": [
[
"/_mozilla/css/vertical_align_text_top_ref.html",
"=="
]
],
"url": "/_mozilla/css/vertical_align_text_top_a.html"
}
],
"css/vertical_align_top_a.html": [
{
"path": "css/vertical_align_top_a.html",
@ -1988,6 +2000,18 @@
"url": "/_mozilla/css/stacking_context_rtl.html"
}
],
"css/vertical_align_text_top_a.html": [
{
"path": "css/vertical_align_text_top_a.html",
"references": [
[
"/_mozilla/css/vertical_align_text_top_ref.html",
"=="
]
],
"url": "/_mozilla/css/vertical_align_text_top_a.html"
}
],
"css/vertical_align_top_a.html": [
{
"path": "css/vertical_align_top_a.html",

View file

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

View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body {
margin: 0;
}
.text {
position: absolute;
background-color: blue;
top: 100px;
width: 100px;
height: 100px;
}
.aligned {
position: absolute;
background-color: red;
top: 100px;
left: 100px;
width: 20px;
height: 20px;
}
</style>
</head>
<body>
<div class="text"></div>
<div class="aligned"></div>
</body>
</html>