mirror of
https://github.com/servo/servo.git
synced 2025-09-30 16:49:16 +01:00
Move overflow_xy_a.html to wpt reftests.
This commit is contained in:
parent
850024696a
commit
15fdd4d086
4 changed files with 25 additions and 1 deletions
|
@ -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",
|
||||
|
|
37
tests/wpt/mozilla/tests/css/overflow_xy_a.html
Normal file
37
tests/wpt/mozilla/tests/css/overflow_xy_a.html
Normal 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>
|
||||
|
29
tests/wpt/mozilla/tests/css/overflow_xy_ref.html
Normal file
29
tests/wpt/mozilla/tests/css/overflow_xy_ref.html
Normal 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>
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue