mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add test for transitions from percent to px
This does not test the rendering, only that Servo doesn't crash.
This commit is contained in:
parent
f9a8fe0afe
commit
17717d4507
3 changed files with 46 additions and 0 deletions
|
@ -5320,6 +5320,18 @@
|
||||||
"url": "/_mozilla/css/transition_calc.html"
|
"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": [
|
"css/translate_clip.html": [
|
||||||
{
|
{
|
||||||
"path": "css/translate_clip.html",
|
"path": "css/translate_clip.html",
|
||||||
|
@ -12440,6 +12452,18 @@
|
||||||
"url": "/_mozilla/css/transition_calc.html"
|
"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": [
|
"css/translate_clip.html": [
|
||||||
{
|
{
|
||||||
"path": "css/translate_clip.html",
|
"path": "css/translate_clip.html",
|
||||||
|
|
21
tests/wpt/mozilla/tests/css/transition_calc_implicit.html
Normal file
21
tests/wpt/mozilla/tests/css/transition_calc_implicit.html
Normal file
|
@ -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>
|
|
@ -0,0 +1 @@
|
||||||
|
<!DOCTYPE html>
|
Loading…
Add table
Add a link
Reference in a new issue