mirror of
https://github.com/servo/servo.git
synced 2025-10-01 09:09:15 +01:00
Auto merge of #8781 - Ms2ger:test-ref, r=frewsxcv
Use wptrunner for some old-style reftests. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8781) <!-- Reviewable:end -->
This commit is contained in:
commit
c2bdae1ec3
11 changed files with 104 additions and 6 deletions
|
@ -3295,6 +3295,18 @@
|
|||
"url": "/_mozilla/css/overflow_position_abs_inline_block.html"
|
||||
}
|
||||
],
|
||||
"css/overflow_position_abs_inside_normal_a.html": [
|
||||
{
|
||||
"path": "css/overflow_position_abs_inside_normal_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/overflow_position_abs_inside_normal_b.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/overflow_position_abs_inside_normal_a.html"
|
||||
}
|
||||
],
|
||||
"css/overflow_position_abs_simple_a.html": [
|
||||
{
|
||||
"path": "css/overflow_position_abs_simple_a.html",
|
||||
|
@ -3547,6 +3559,18 @@
|
|||
"url": "/_mozilla/css/position_abs_width_percentage_a.html"
|
||||
}
|
||||
],
|
||||
"css/position_fixed_a.html": [
|
||||
{
|
||||
"path": "css/position_fixed_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/position_fixed_b.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/position_fixed_a.html"
|
||||
}
|
||||
],
|
||||
"css/position_fixed_background_color_a.html": [
|
||||
{
|
||||
"path": "css/position_fixed_background_color_a.html",
|
||||
|
@ -3571,6 +3595,30 @@
|
|||
"url": "/_mozilla/css/position_fixed_overflow_a.html"
|
||||
}
|
||||
],
|
||||
"css/position_fixed_simple_a.html": [
|
||||
{
|
||||
"path": "css/position_fixed_simple_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/position_fixed_simple_b.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/position_fixed_simple_a.html"
|
||||
}
|
||||
],
|
||||
"css/position_fixed_static_y_a.html": [
|
||||
{
|
||||
"path": "css/position_fixed_static_y_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/position_fixed_static_y_b.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/position_fixed_static_y_a.html"
|
||||
}
|
||||
],
|
||||
"css/position_fixed_tile_edge.html": [
|
||||
{
|
||||
"path": "css/position_fixed_tile_edge.html",
|
||||
|
@ -9018,6 +9066,18 @@
|
|||
"url": "/_mozilla/css/overflow_position_abs_inline_block.html"
|
||||
}
|
||||
],
|
||||
"css/overflow_position_abs_inside_normal_a.html": [
|
||||
{
|
||||
"path": "css/overflow_position_abs_inside_normal_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/overflow_position_abs_inside_normal_b.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/overflow_position_abs_inside_normal_a.html"
|
||||
}
|
||||
],
|
||||
"css/overflow_position_abs_simple_a.html": [
|
||||
{
|
||||
"path": "css/overflow_position_abs_simple_a.html",
|
||||
|
@ -9270,6 +9330,18 @@
|
|||
"url": "/_mozilla/css/position_abs_width_percentage_a.html"
|
||||
}
|
||||
],
|
||||
"css/position_fixed_a.html": [
|
||||
{
|
||||
"path": "css/position_fixed_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/position_fixed_b.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/position_fixed_a.html"
|
||||
}
|
||||
],
|
||||
"css/position_fixed_background_color_a.html": [
|
||||
{
|
||||
"path": "css/position_fixed_background_color_a.html",
|
||||
|
@ -9294,6 +9366,30 @@
|
|||
"url": "/_mozilla/css/position_fixed_overflow_a.html"
|
||||
}
|
||||
],
|
||||
"css/position_fixed_simple_a.html": [
|
||||
{
|
||||
"path": "css/position_fixed_simple_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/position_fixed_simple_b.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/position_fixed_simple_a.html"
|
||||
}
|
||||
],
|
||||
"css/position_fixed_static_y_a.html": [
|
||||
{
|
||||
"path": "css/position_fixed_static_y_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/position_fixed_static_y_b.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/position_fixed_static_y_a.html"
|
||||
}
|
||||
],
|
||||
"css/position_fixed_tile_edge.html": [
|
||||
{
|
||||
"path": "css/position_fixed_tile_edge.html",
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
[overflow_position_abs_inside_normal_a.html]
|
||||
type: reftest
|
||||
expected: FAIL
|
||||
bug: https://github.com/servo/servo/issues/8780
|
|
@ -0,0 +1,33 @@
|
|||
<html>
|
||||
<title>
|
||||
`overflow: hidden` on #second has no effect on #abs because its CB is #first.
|
||||
</title>
|
||||
<head>
|
||||
<link rel=match href=overflow_position_abs_inside_normal_b.html>
|
||||
<style>
|
||||
#first {
|
||||
position: relative;
|
||||
}
|
||||
#second {
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
background: red;
|
||||
overflow: hidden;
|
||||
}
|
||||
#abs {
|
||||
position: absolute;
|
||||
height: 200px;
|
||||
width: 200px;
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="first">
|
||||
<div id="second">
|
||||
<div id="abs">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,17 @@
|
|||
<html>
|
||||
<title>
|
||||
`overflow: hidden` on #second has no effect on #abs because its CB is #first.
|
||||
</title>
|
||||
<head>
|
||||
<style>
|
||||
#first {
|
||||
height: 200px;
|
||||
width: 200px;
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="first"></div>
|
||||
</body>
|
||||
</html>
|
44
tests/wpt/mozilla/tests/css/position_fixed_a.html
Normal file
44
tests/wpt/mozilla/tests/css/position_fixed_a.html
Normal file
|
@ -0,0 +1,44 @@
|
|||
<html>
|
||||
<head>
|
||||
<link rel=match href=position_fixed_b.html>
|
||||
<style>
|
||||
.container {
|
||||
display: block;
|
||||
background: blue;
|
||||
}
|
||||
.fixed_block {
|
||||
background: green;
|
||||
position: fixed;
|
||||
}
|
||||
.positioned_fixed_block {
|
||||
background: yellow;
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
right: 25px;
|
||||
}
|
||||
.sized_fixed_block {
|
||||
background: red;
|
||||
position: fixed;
|
||||
height: 50px;
|
||||
width: 50px;
|
||||
left: 5px;
|
||||
right: 10px;
|
||||
top: 100px;
|
||||
bottom: 30px;
|
||||
}
|
||||
.stretched_fixed_block {
|
||||
position: fixed;
|
||||
background: black;
|
||||
top: 100px;
|
||||
bottom: 30px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="fixed_block"> fixed block </div>
|
||||
<div class="positioned_fixed_block"> positioned fixed block </div>
|
||||
<div class="sized_fixed_block"> sized fixed block </div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
43
tests/wpt/mozilla/tests/css/position_fixed_b.html
Normal file
43
tests/wpt/mozilla/tests/css/position_fixed_b.html
Normal file
|
@ -0,0 +1,43 @@
|
|||
<html>
|
||||
<head>
|
||||
<style>
|
||||
.container {
|
||||
display: block;
|
||||
background: blue;
|
||||
}
|
||||
.fixed_block {
|
||||
background: green;
|
||||
position: fixed;
|
||||
}
|
||||
.positioned_fixed_block {
|
||||
background: yellow;
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
right: 25px;
|
||||
}
|
||||
.sized_fixed_block {
|
||||
background: red;
|
||||
position: fixed;
|
||||
height: 50px;
|
||||
width: 50px;
|
||||
left: 5px;
|
||||
right: 10px;
|
||||
top: 100px;
|
||||
bottom: 30px;
|
||||
}
|
||||
.stretched_fixed_block {
|
||||
position: fixed;
|
||||
background: black;
|
||||
top: 100px;
|
||||
bottom: 30px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="fixed_block"> fixed block </div>
|
||||
<div class="positioned_fixed_block"> positioned fixed block </div>
|
||||
<div class="sized_fixed_block"> sized fixed block </div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
39
tests/wpt/mozilla/tests/css/position_fixed_simple_a.html
Normal file
39
tests/wpt/mozilla/tests/css/position_fixed_simple_a.html
Normal file
|
@ -0,0 +1,39 @@
|
|||
<html>
|
||||
<head>
|
||||
<link rel=match href=position_fixed_simple_b.html>
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0px;
|
||||
}
|
||||
.box {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
#rel-cont {
|
||||
position: relative;
|
||||
}
|
||||
#first {
|
||||
background: red;
|
||||
}
|
||||
#normal {
|
||||
background: blue;
|
||||
}
|
||||
#fixed {
|
||||
position: fixed;
|
||||
left: 0px;
|
||||
top: 0px;
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="first" class="box">
|
||||
</div>
|
||||
<div id="normal" class="box"></div>
|
||||
<!-- This should become empty -->
|
||||
<div id="rel-cont">
|
||||
<div id="fixed" class="box">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
24
tests/wpt/mozilla/tests/css/position_fixed_simple_b.html
Normal file
24
tests/wpt/mozilla/tests/css/position_fixed_simple_b.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
<html>
|
||||
<head>
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0px;
|
||||
}
|
||||
.box {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
#first {
|
||||
background: green;
|
||||
}
|
||||
#normal {
|
||||
background: blue;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="first" class="box">
|
||||
</div>
|
||||
<div id="normal" class="box"></div>
|
||||
</body>
|
||||
</html>
|
41
tests/wpt/mozilla/tests/css/position_fixed_static_y_a.html
Normal file
41
tests/wpt/mozilla/tests/css/position_fixed_static_y_a.html
Normal file
|
@ -0,0 +1,41 @@
|
|||
<html>
|
||||
<head>
|
||||
<link rel=match href=position_fixed_static_y_b.html>
|
||||
<style>
|
||||
html, body {
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
}
|
||||
body {
|
||||
margin-top: 100px;
|
||||
}
|
||||
#first {
|
||||
position: relative;
|
||||
width: 90px;
|
||||
height: 90px;
|
||||
border: solid 1px;
|
||||
}
|
||||
#second {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
#fixed {
|
||||
position: fixed;
|
||||
left: 30px;
|
||||
right: 30px;
|
||||
width: 100px;
|
||||
height: 20px;
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="first">
|
||||
<div id="second">
|
||||
</div>
|
||||
<!-- This should be at its static y position (inside #first, after #second) -->
|
||||
<div id="fixed">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
35
tests/wpt/mozilla/tests/css/position_fixed_static_y_b.html
Normal file
35
tests/wpt/mozilla/tests/css/position_fixed_static_y_b.html
Normal file
|
@ -0,0 +1,35 @@
|
|||
<html>
|
||||
<head>
|
||||
<style>
|
||||
html, body {
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
}
|
||||
body {
|
||||
margin-top: 100px;
|
||||
}
|
||||
#first {
|
||||
width: 90px;
|
||||
height: 90px;
|
||||
border: solid 1px;
|
||||
}
|
||||
.row {
|
||||
width: 90px;
|
||||
height: 30px;
|
||||
}
|
||||
.center {
|
||||
margin-left: 29px;
|
||||
height: 20px;
|
||||
width: 100px;
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="first">
|
||||
<div class="row"></div>
|
||||
<div class="center">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue