Move position_relative_stacking_context_contents_a.html to wpt reftests.

This commit is contained in:
Corey Farwell 2015-10-16 10:40:44 -04:00
parent 98387ffc7c
commit 9f2917db51
4 changed files with 25 additions and 1 deletions

View file

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

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<link rel='match' href='position_relative_stacking_context_contents_ref.html'>
<style>
html, body {
margin: 0;
}
aside {
display: block;
position: relative;
left: 12px;
z-index: 3; /* force creation of stacking context */
background: red;
}
div {
float: left;
width: 100px;
height: 100px;
background: blue;
}
</style>
<aside><div></div></aside>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<style>
html, body {
margin: 0;
}
aside {
display: block;
position: absolute;
left: 12px;
top: 0;
width: 100px;
height: 100px;
background: blue;
}
</style>
<aside></aside>