Move overflow_xy_a.html to wpt reftests.

This commit is contained in:
Corey Farwell 2015-10-16 18:51:27 -04:00
parent 850024696a
commit 15fdd4d086
4 changed files with 25 additions and 1 deletions

View file

@ -683,6 +683,18 @@
"url": "/_mozilla/css/flex_nochild.html"
}
],
"css/overflow_xy_a.html": [
{
"path": "css/overflow_xy_a.html",
"references": [
[
"/_mozilla/css/overflow_xy_ref.html",
"=="
]
],
"url": "/_mozilla/css/overflow_xy_a.html"
}
],
"css/per_glyph_font_fallback_a.html": [
{
"path": "css/per_glyph_font_fallback_a.html",
@ -3336,6 +3348,18 @@
"url": "/_mozilla/css/flex_nochild.html"
}
],
"css/overflow_xy_a.html": [
{
"path": "css/overflow_xy_a.html",
"references": [
[
"/_mozilla/css/overflow_xy_ref.html",
"=="
]
],
"url": "/_mozilla/css/overflow_xy_a.html"
}
],
"css/per_glyph_font_fallback_a.html": [
{
"path": "css/per_glyph_font_fallback_a.html",

View file

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html>
<head>
<link rel='match' href='overflow_xy_ref.html'>
<!-- Tests that `overflow-x` and `overflow-y` work. -->
<style>
section {
position: absolute;
width: 100px;
height: 100px;
left: 0;
}
#x {
overflow-x: hidden;
overflow-y: visible; /* computes to `auto` */
top: 0;
}
#y {
overflow: hidden;
top: 200px;
}
div {
position: absolute;
width: 200px;
height: 200px;
top: 0;
left: 0;
background: green;
}
</style>
</head>
<body>
<section id=x><div></div></section>
<section id=y><div></div></section>
</body>
</html>

View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<!-- Tests that `overflow-x` and `overflow-y` work. -->
<style>
section {
position: absolute;
left: 0;
background: green;
}
#x {
top: 0;
width: 100px;
height: 100px;
}
#y {
top: 200px;
width: 100px;
height: 100px;
}
</style>
</head>
<body>
<section id=x></section>
<section id=y></section>
</body>
</html>