tor-browser

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

custom-property-animation-angle-comma-list.html (1705B)


      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: "<angle>#",
     11  inherits: false,
     12  initialValue: "0deg"
     13 }, {
     14  keyframes: ["100deg, 150deg", "200deg, 250deg"],
     15  expected: "150deg, 200deg"
     16 }, 'Animating a custom property of type <angle>#');
     17 
     18 animation_test({
     19  syntax: "<angle>#",
     20  inherits: false,
     21  initialValue: "100deg, 150deg"
     22 }, {
     23  keyframes: "200deg, 250deg",
     24  expected: "150deg, 200deg"
     25 }, 'Animating a custom property of type <angle># with a single keyframe');
     26 
     27 animation_test({
     28  syntax: "<angle>#",
     29  inherits: false,
     30  initialValue: "50deg, 100deg"
     31 }, {
     32  composite: "add",
     33  keyframes: ["150deg, 200deg", "250deg, 300deg"],
     34  expected: "250deg, 350deg"
     35 }, 'Animating a custom property of type <angle># with additivity');
     36 
     37 animation_test({
     38  syntax: "<angle>#",
     39  inherits: false,
     40  initialValue: "50deg, 100deg"
     41 }, {
     42  composite: "add",
     43  keyframes: "150deg, 200deg",
     44  expected: "125deg, 200deg"
     45 }, 'Animating a custom property of type <angle># with a single keyframe and additivity');
     46 
     47 animation_test({
     48  syntax: "<angle>#",
     49  inherits: false,
     50  initialValue: "0deg, 0deg"
     51 }, {
     52  iterationComposite: "accumulate",
     53  keyframes: ["0deg, 50deg", "100deg, 100deg"],
     54  expected: "250deg, 275deg"
     55 }, 'Animating a custom property of type <angle># with iterationComposite');
     56 
     57 discrete_animation_test("<angle>#", '10deg, 20deg', '30deg', 'Animating a custom property of type <angle># with different lengths is discrete');
     58 
     59 </script>