tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

custom-property-animation-transform-list-single-values.html (1874B)


      1 <!DOCTYPE html>
      2 <link rel="help" href="https://drafts.css-houdini.org/css-properties-values-api-1">
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script src="../resources/utils.js"></script>
      6 <div id="target"></div>
      7 <script>
      8 
      9 animation_test({
     10  syntax: "<transform-list>",
     11  inherits: false,
     12  initialValue: "translateX(0px)"
     13 }, {
     14  keyframes: ["translateX(100px)", "translateX(200px)"],
     15  expected: "translateX(150px)"
     16 }, 'Animating a custom property of type <transform-list> containing a single value');
     17 
     18 animation_test({
     19  syntax: "<transform-list>",
     20  inherits: false,
     21  initialValue: "translateX(100px)"
     22 }, {
     23  keyframes: "translateX(200px)",
     24  expected: "translateX(150px)"
     25 }, 'Animating a custom property of type <transform-list> containing a single value with a single keyframe');
     26 
     27 animation_test({
     28  syntax: "<transform-list>",
     29  inherits: false,
     30  initialValue: "translateX(100px)"
     31 }, {
     32  composite: "add",
     33  keyframes: ["translateX(200px)", "translateX(300px)"],
     34  expected: "translateX(100px) translateX(250px)"
     35 }, 'Animating a custom property of type <transform-list> containing a single value with additivity');
     36 
     37 animation_test({
     38  syntax: "<transform-list>",
     39  inherits: false,
     40  initialValue: "translateX(100px)"
     41 }, {
     42  composite: "add",
     43  keyframes: "translateX(300px)",
     44  expected: "translateX(100px) translateX(150px)"
     45 }, 'Animating a custom property of type <transform-list> containing a single value with a single keyframe and additivity');
     46 
     47 animation_test({
     48  syntax: "<transform-list>",
     49  inherits: false,
     50  initialValue: "translateX(100px)"
     51 }, {
     52  iterationComposite: "accumulate",
     53  keyframes: ["translateX(0px)", "translateX(100px)"],
     54  expected: "translateX(250px)"
     55 }, 'Animating a custom property of type <transform-list> containing a single value with iterationComposite');
     56 
     57 </script>