Move negative_margins_a.html to wpt reftests.

This commit is contained in:
Corey Farwell 2015-10-19 18:34:07 -04:00
parent 06c7ecc04b
commit 30208daf1f
4 changed files with 25 additions and 1 deletions

View file

@ -935,6 +935,18 @@
"url": "/_mozilla/css/negative_margin_uncle_a.html"
}
],
"css/negative_margins_a.html": [
{
"path": "css/negative_margins_a.html",
"references": [
[
"/_mozilla/css/negative_margins_b.html",
"=="
]
],
"url": "/_mozilla/css/negative_margins_a.html"
}
],
"css/no-image.html": [
{
"path": "css/no-image.html",
@ -4176,6 +4188,18 @@
"url": "/_mozilla/css/negative_margin_uncle_a.html"
}
],
"css/negative_margins_a.html": [
{
"path": "css/negative_margins_a.html",
"references": [
[
"/_mozilla/css/negative_margins_b.html",
"=="
]
],
"url": "/_mozilla/css/negative_margins_a.html"
}
],
"css/no-image.html": [
{
"path": "css/no-image.html",

View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<link rel='match' href='negative_margins_b.html'>
<style>
* {
line-height: 14px;
}
#b {
margin-top: -14px;
}
</style>
</head>
<body>
<div id=a>X</div>
<div id=b>X</div>
</body>
</html>

View file

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<style>
* {
line-height: 14px;
}
#a {
position: relative;
}
#b {
position: absolute;
top: 0;
left: 0;
right: 0;
}
</style>
</head>
<body>
<div id=a>X
<div id=b>X</div></div>
</body>
</html>