Move position_relative_vertical_percentage_overflow_a.html to wpt reftests.

This commit is contained in:
Corey Farwell 2015-10-16 08:49:55 -04:00
parent 70746fc7e6
commit d2a27ee9bf
4 changed files with 25 additions and 1 deletions

View file

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

View file

@ -0,0 +1,26 @@
<!DOCTYPE html>
<link rel='match' href='position_relative_vertical_percentage_overflow_ref.html'>
<style>
body, html {
margin: 0;
}
#a {
display: block;
position: absolute;
top: 100px;
left: 100px;
width: 100px;
height: 100px;
transform: translateX(0px); /* force creation of stacking context */
}
#b {
display: block;
position: relative;
top: -50%;
width: 100px;
height: 100px;
background: purple;
}
</style>
<div id=a><div id=b>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<style>
body, html {
margin: 0;
}
#a {
display: block;
position: absolute;
top: 50px;
left: 100px;
width: 100px;
height: 100px;
background: purple;
}
</style>
<div id=a>