mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision bda2059150dca8ab47f088b4cc619fcdc1f262fa
This commit is contained in:
parent
3535f3f6c2
commit
7c4281f3da
182 changed files with 7692 additions and 1042 deletions
|
@ -140,6 +140,20 @@ var gPropertyIndexedKeyframesTests = [
|
|||
opacity: "0" },
|
||||
{ offset: null, computedOffset: 1, easing: "linear",
|
||||
opacity: "1" }] },
|
||||
{ desc: "a property-indexed keyframes specification with a CSS variable"
|
||||
+ " reference",
|
||||
input: { left: [ "var(--dist)", "calc(var(--dist) + 100px)" ] },
|
||||
output: [{ offset: null, computedOffset: 0.0, easing: "linear",
|
||||
left: "var(--dist)" },
|
||||
{ offset: null, computedOffset: 1.0, easing: "linear",
|
||||
left: "calc(var(--dist) + 100px)" }] },
|
||||
{ desc: "a property-indexed keyframes specification with a CSS variable"
|
||||
+ " reference in a shorthand property",
|
||||
input: { margin: [ "var(--dist)", "calc(var(--dist) + 100px)" ] },
|
||||
output: [{ offset: null, computedOffset: 0.0, easing: "linear",
|
||||
margin: "var(--dist)" },
|
||||
{ offset: null, computedOffset: 1.0, easing: "linear",
|
||||
margin: "calc(var(--dist) + 100px)" }] },
|
||||
{ desc: "a one property one value property-indexed keyframes specification",
|
||||
input: { left: ["10px"] },
|
||||
output: [{ offset: null, computedOffset: 1, easing: "linear",
|
||||
|
@ -163,38 +177,6 @@ var gPropertyIndexedKeyframesTests = [
|
|||
left: "10px" },
|
||||
{ offset: null, computedOffset: 1, easing: "linear",
|
||||
left: "invalid" }] },
|
||||
{ desc: "a two property property-indexed keyframes specification where one"
|
||||
+ " property is missing from the first keyframe",
|
||||
input: [{ offset: 0, left: "10px" },
|
||||
{ offset: 1, left: "20px", top: "30px" }],
|
||||
output: [{ offset: 0, computedOffset: 0, easing: "linear", left: "10px" },
|
||||
{ offset: 1, computedOffset: 1, easing: "linear",
|
||||
left: "20px", top: "30px" }] },
|
||||
{ desc: "a two property property-indexed keyframes specification where one"
|
||||
+ " property is missing from the last keyframe",
|
||||
input: [{ offset: 0, left: "10px", top: "20px" },
|
||||
{ offset: 1, left: "30px" }],
|
||||
output: [{ offset: 0, computedOffset: 0, easing: "linear",
|
||||
left: "10px" , top: "20px" },
|
||||
{ offset: 1, computedOffset: 1, easing: "linear",
|
||||
left: "30px" }] },
|
||||
{ desc: "a property-indexed keyframes specification with repeated values"
|
||||
+ " at offset 0 with different easings",
|
||||
input: [{ offset: 0.0, left: "100px", easing: "ease" },
|
||||
{ offset: 0.0, left: "200px", easing: "ease" },
|
||||
{ offset: 0.5, left: "300px", easing: "linear" },
|
||||
{ offset: 1.0, left: "400px", easing: "ease-out" },
|
||||
{ offset: 1.0, left: "500px", easing: "step-end" }],
|
||||
output: [{ offset: 0.0, computedOffset: 0.0, easing: "ease",
|
||||
left: "100px" },
|
||||
{ offset: 0.0, computedOffset: 0.0, easing: "ease",
|
||||
left: "200px" },
|
||||
{ offset: 0.5, computedOffset: 0.5, easing: "linear",
|
||||
left: "300px" },
|
||||
{ offset: 1.0, computedOffset: 1.0, easing: "ease-out",
|
||||
left: "400px" },
|
||||
{ offset: 1.0, computedOffset: 1.0, easing: "step-end",
|
||||
left: "500px" }] },
|
||||
];
|
||||
|
||||
var gKeyframeSequenceTests = [
|
||||
|
@ -370,6 +352,21 @@ var gKeyframeSequenceTests = [
|
|||
output: [{ offset: 0, computedOffset: 0, easing: "linear", opacity: "0" },
|
||||
{ offset: 1, computedOffset: 1, easing: "linear", opacity: "1" }]
|
||||
},
|
||||
{ desc: "a keyframe sequence with a CSS variable reference",
|
||||
input: [{ left: "var(--dist)" },
|
||||
{ left: "calc(var(--dist) + 100px)" }],
|
||||
output: [{ offset: null, computedOffset: 0.0, easing: "linear",
|
||||
left: "var(--dist)" },
|
||||
{ offset: null, computedOffset: 1.0, easing: "linear",
|
||||
left: "calc(var(--dist) + 100px)" }] },
|
||||
{ desc: "a keyframe sequence with a CSS variable reference in a shorthand"
|
||||
+ " property",
|
||||
input: [{ margin: "var(--dist)" },
|
||||
{ margin: "calc(var(--dist) + 100px)" }],
|
||||
output: [{ offset: null, computedOffset: 0.0, easing: "linear",
|
||||
margin: "var(--dist)" },
|
||||
{ offset: null, computedOffset: 1.0, easing: "linear",
|
||||
margin: "calc(var(--dist) + 100px)" }] },
|
||||
{ desc: "a keyframe sequence where shorthand precedes longhand",
|
||||
input: [{ offset: 0, margin: "10px", marginRight: "20px" },
|
||||
{ offset: 1, margin: "30px" }],
|
||||
|
@ -404,7 +401,39 @@ var gKeyframeSequenceTests = [
|
|||
border: "2px dotted rgb(4, 5, 6)",
|
||||
borderLeft: "1px solid rgb(1, 2, 3)" },
|
||||
{ offset: 1, computedOffset: 1, easing: "linear",
|
||||
border: "3px dashed rgb(7, 8, 9)" }] }
|
||||
border: "3px dashed rgb(7, 8, 9)" }] },
|
||||
{ desc: "a two property keyframe sequence where one property is missing"
|
||||
+ " from the first keyframe",
|
||||
input: [{ offset: 0, left: "10px" },
|
||||
{ offset: 1, left: "20px", top: "30px" }],
|
||||
output: [{ offset: 0, computedOffset: 0, easing: "linear", left: "10px" },
|
||||
{ offset: 1, computedOffset: 1, easing: "linear",
|
||||
left: "20px", top: "30px" }] },
|
||||
{ desc: "a two property keyframe sequence where one property is missing"
|
||||
+ " from the last keyframe",
|
||||
input: [{ offset: 0, left: "10px", top: "20px" },
|
||||
{ offset: 1, left: "30px" }],
|
||||
output: [{ offset: 0, computedOffset: 0, easing: "linear",
|
||||
left: "10px" , top: "20px" },
|
||||
{ offset: 1, computedOffset: 1, easing: "linear",
|
||||
left: "30px" }] },
|
||||
{ desc: "a keyframe sequence with repeated values at offset 1 with"
|
||||
+ " different easings",
|
||||
input: [{ offset: 0.0, left: "100px", easing: "ease" },
|
||||
{ offset: 0.0, left: "200px", easing: "ease" },
|
||||
{ offset: 0.5, left: "300px", easing: "linear" },
|
||||
{ offset: 1.0, left: "400px", easing: "ease-out" },
|
||||
{ offset: 1.0, left: "500px", easing: "step-end" }],
|
||||
output: [{ offset: 0.0, computedOffset: 0.0, easing: "ease",
|
||||
left: "100px" },
|
||||
{ offset: 0.0, computedOffset: 0.0, easing: "ease",
|
||||
left: "200px" },
|
||||
{ offset: 0.5, computedOffset: 0.5, easing: "linear",
|
||||
left: "300px" },
|
||||
{ offset: 1.0, computedOffset: 1.0, easing: "ease-out",
|
||||
left: "400px" },
|
||||
{ offset: 1.0, computedOffset: 1.0, easing: "step-end",
|
||||
left: "500px" }] },
|
||||
];
|
||||
|
||||
var gInvalidKeyframesTests = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue