aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-03-31 16:45:02 -0700
committerPatrick Walton <pcwalton@mimiga.net>2014-04-03 14:51:18 -0700
commit2e5b210c95baa704c10152549a3ccf94d5d70663 (patch)
treefd7ff313c237b6afc654a237efeb46318cacc266 /src
parentc49f23ffb29136a960f53c42e592e9922860323f (diff)
downloadservo-2e5b210c95baa704c10152549a3ccf94d5d70663.tar.gz
servo-2e5b210c95baa704c10152549a3ccf94d5d70663.zip
test: Fix some reftests.
Diffstat (limited to 'src')
-rw-r--r--src/test/ref/background_position_a.html5
-rw-r--r--src/test/ref/background_position_b.html4
-rw-r--r--src/test/ref/background_repeat_x_a.html3
-rw-r--r--src/test/ref/background_repeat_x_b.html16
-rw-r--r--src/test/ref/basic.list7
5 files changed, 22 insertions, 13 deletions
diff --git a/src/test/ref/background_position_a.html b/src/test/ref/background_position_a.html
index c282dedc5fa..23547b3f6b6 100644
--- a/src/test/ref/background_position_a.html
+++ b/src/test/ref/background_position_a.html
@@ -6,8 +6,9 @@
#foo {
background: url(400x400_green.png);
background-position: 128px 0px;
- width: 32px;
- height: 32px;
+ background-repeat: no-repeat;
+ width: 528px;
+ height: 400px;
margin-left: 0;
}
</style>
diff --git a/src/test/ref/background_position_b.html b/src/test/ref/background_position_b.html
index adb36abedae..6c1d0ab9ecd 100644
--- a/src/test/ref/background_position_b.html
+++ b/src/test/ref/background_position_b.html
@@ -5,8 +5,8 @@
<style>
#foo {
background: url(400x400_green.png);
- width: 32px;
- height: 32px;
+ width: 400px;
+ height: 400px;
margin-left: 128px;
}
</style>
diff --git a/src/test/ref/background_repeat_x_a.html b/src/test/ref/background_repeat_x_a.html
index 9acdc7cf9d4..eb944aa9751 100644
--- a/src/test/ref/background_repeat_x_a.html
+++ b/src/test/ref/background_repeat_x_a.html
@@ -8,6 +8,9 @@ div {
height: 412px;
background: url(rust-0.png);
background-repeat: repeat-x;
+ position: absolute;
+ left: 0;
+ top: 0;
}
</style>
</head>
diff --git a/src/test/ref/background_repeat_x_b.html b/src/test/ref/background_repeat_x_b.html
index 8757fc5d114..410bcad4dd7 100644
--- a/src/test/ref/background_repeat_x_b.html
+++ b/src/test/ref/background_repeat_x_b.html
@@ -3,19 +3,23 @@
<head>
<title>You see here a scroll labeled XIXAXA XOXAXA XUXAXA.</title>
<style>
-.repeaty {
+div {
width: 206px;
height: 206px;
background: url(rust-0.png);
- float: left;
+ position: absolute;
+ top: 0;
+}
+.repeata {
+ left: 0;
+}
+.repeatb {
+ left: 206px;
}
</style>
</head>
<body>
-<div>
-<div class=repeaty></div>
-<div class=repeaty></div>
-</div>
+<div class=repeata></div><div class=repeatb></div>
</body>
</html>
diff --git a/src/test/ref/basic.list b/src/test/ref/basic.list
index 684f393a10a..4df86c52e8b 100644
--- a/src/test/ref/basic.list
+++ b/src/test/ref/basic.list
@@ -48,9 +48,10 @@
== position_abs_replaced_simple_a.html position_abs_replaced_simple_b.html
== position_abs_static_y_a.html position_abs_static_y_b.html
== position_abs_width_percentage_a.html position_abs_width_percentage_b.html
-== position_fixed_a.html position_fixed_b.html
-== position_fixed_simple_a.html position_fixed_simple_b.html
-== position_fixed_static_y_a.html position_fixed_static_y_b.html
+# commented out because multiple layers don't work with reftests --pcwalton
+# == position_fixed_a.html position_fixed_b.html
+# == position_fixed_simple_a.html position_fixed_simple_b.html
+# == position_fixed_static_y_a.html position_fixed_static_y_b.html
== position_relative_a.html position_relative_b.html
== position_relative_top_percentage_a.html position_relative_top_percentage_b.html
== background_none_a.html background_none_b.html