aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2016-07-02 09:57:28 -0700
committerMichael Howell <michael@notriddle.com>2016-07-02 10:56:31 -0700
commit17717d45073e1e2b46a11de9a522bb2f7776d793 (patch)
tree522144297765e2e1c181ab4455bf1f38d7eb01dc
parentf9a8fe0afef5b4a6bac6071b812a4faac0f963b7 (diff)
downloadservo-17717d45073e1e2b46a11de9a522bb2f7776d793.tar.gz
servo-17717d45073e1e2b46a11de9a522bb2f7776d793.zip
Add test for transitions from percent to px
This does not test the rendering, only that Servo doesn't crash.
-rw-r--r--tests/wpt/mozilla/meta/MANIFEST.json24
-rw-r--r--tests/wpt/mozilla/tests/css/transition_calc_implicit.html21
-rw-r--r--tests/wpt/mozilla/tests/css/transition_calc_implicit_ref.html1
3 files changed, 46 insertions, 0 deletions
diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json
index 2fcfe5ff25b..32d55768235 100644
--- a/tests/wpt/mozilla/meta/MANIFEST.json
+++ b/tests/wpt/mozilla/meta/MANIFEST.json
@@ -5320,6 +5320,18 @@
"url": "/_mozilla/css/transition_calc.html"
}
],
+ "css/transition_calc_implicit.html": [
+ {
+ "path": "css/transition_calc_implicit.html",
+ "references": [
+ [
+ "/_mozilla/css/transition_calc_implicit_ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/transition_calc_implicit.html"
+ }
+ ],
"css/translate_clip.html": [
{
"path": "css/translate_clip.html",
@@ -12440,6 +12452,18 @@
"url": "/_mozilla/css/transition_calc.html"
}
],
+ "css/transition_calc_implicit.html": [
+ {
+ "path": "css/transition_calc_implicit.html",
+ "references": [
+ [
+ "/_mozilla/css/transition_calc_implicit_ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/transition_calc_implicit.html"
+ }
+ ],
"css/translate_clip.html": [
{
"path": "css/translate_clip.html",
diff --git a/tests/wpt/mozilla/tests/css/transition_calc_implicit.html b/tests/wpt/mozilla/tests/css/transition_calc_implicit.html
new file mode 100644
index 00000000000..a4cca7548ae
--- /dev/null
+++ b/tests/wpt/mozilla/tests/css/transition_calc_implicit.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<link rel='match' href='transition_calc_implicit_ref.html'>
+<style>
+#inner {
+ transition: transform 0.01s;
+ height: 100px;
+ width: 100px;
+ transform: translate(1%, 1%);
+}
+.active {
+ transform: translate(0px, 1px) !important;
+}
+</style>
+<div id=inner></div>
+<script>
+requestAnimationFrame(function() {
+ var inner = document.getElementById('inner');
+ inner.className = 'active';
+ requestAnimationFrame(function() {});
+});
+</script>
diff --git a/tests/wpt/mozilla/tests/css/transition_calc_implicit_ref.html b/tests/wpt/mozilla/tests/css/transition_calc_implicit_ref.html
new file mode 100644
index 00000000000..0e76edd65b7
--- /dev/null
+++ b/tests/wpt/mozilla/tests/css/transition_calc_implicit_ref.html
@@ -0,0 +1 @@
+<!DOCTYPE html>