tor-browser

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

animation-003.tentative.html (1626B)


      1 <!doctype html>
      2 <meta charset=utf-8>
      3 <title>Animating CSS logical properties using CSS Animations - Web Animations reflection</title>
      4 <link rel="help" href="https://drafts.csswg.org/css-logical/#box">
      5 <meta name="assert" content="The specified values of these properties are separate from the specified values of the parallel physical properties, but the flow-relative and physical properties share computed values.">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <script src="../css-animations/support/testcommon.js"></script>
      9 
     10 <div id="log"></div>
     11 <script>
     12 'use strict';
     13 
     14 /*
     15 * The mapping from CSS Animations to Web Animations has yet to be specified
     16 * but, when it is, we expect it to require that logical properties in CSS
     17 * keyframes be represented as physical properties in the result returned from
     18 * getKeyframes() since this is consistent with the behavior of expanding out
     19 * all shorthands in to their consituent longhands in order to resolve
     20 * overlapping properties.
     21 */
     22 
     23 test(t => {
     24  addStyle(t, {
     25    '@keyframes anim': 'from { block-size: 0px } to { block-size: 100px }',
     26  });
     27  const div = addDiv(t, { style: 'animation: anim 10s' });
     28  const anim = div.getAnimations()[0];
     29 
     30  assert_own_property(anim.effect.getKeyframes()[0], 'height');
     31  assert_false(anim.effect.getKeyframes()[0].hasOwnProperty('blockSize'));
     32 
     33  assert_own_property(anim.effect.getKeyframes()[1], 'height');
     34  assert_false(anim.effect.getKeyframes()[1].hasOwnProperty('blockSize'));
     35 }, 'Logical properties are represented as physical properties in keyframes');
     36 
     37 </script>