@@ -361,24 +361,24 @@ describe('one shared motion (spec:AST-105 FR4)', () => {
361361 ) ;
362362 }
363363
364- it ( "plays the changed element and its followers on the theme's move curve over --duration-medium-min , with one duration" , async ( ) => {
364+ it ( "plays the changed element and its followers on the theme's move curve over --duration-medium, with one duration" , async ( ) => {
365365 // With no stylesheet, the tokens read core's declared values.
366366 await changeOnce ( ) ;
367367 const follower = played . find ( p => ( p . element as HTMLElement ) . id === 'a' ) ;
368368 const own = played . find ( p => ( p . element as HTMLElement ) . id === 'changed' ) ;
369369 expect ( follower ) . toBeDefined ( ) ;
370370 expect ( own ) . toBeDefined ( ) ;
371371 expect ( own ?. options . duration ) . toBe ( follower ?. options . duration ) ;
372- expect ( Number ( follower ?. options . duration ) ) . toBeCloseTo ( 310 , 6 ) ;
373- const remaining = remainingOn ( [ 0.24 , 1 , 0.4 , 1 ] , 310 ) ;
372+ expect ( Number ( follower ?. options . duration ) ) . toBeCloseTo ( 410 , 6 ) ;
373+ const remaining = remainingOn ( [ 0.24 , 1 , 0.4 , 1 ] , 410 ) ;
374374 for ( const { t, y} of verticalCurveOf ( follower as Played ) ) {
375375 expect ( y ) . toBeCloseTo ( - 80 * remaining ( t ) , 3 ) ;
376376 }
377377 } ) ;
378378
379- it ( 'plays the --duration-medium-min and --ease-move of the theme the area is in' , async ( ) => {
379+ it ( 'plays the --duration-medium and --ease-move of the theme the area is in' , async ( ) => {
380380 await changeOnce (
381- '--duration-medium-min : 200ms; --ease-move: cubic-bezier(0, 0, 1, 1)' ,
381+ '--duration-medium: 200ms; --ease-move: cubic-bezier(0, 0, 1, 1)' ,
382382 ) ;
383383 const follower = played . find ( p => ( p . element as HTMLElement ) . id === 'a' ) ;
384384 expect ( Number ( follower ?. options . duration ) ) . toBeCloseTo ( 200 , 6 ) ;
@@ -389,17 +389,15 @@ describe('one shared motion (spec:AST-105 FR4)', () => {
389389
390390 it ( "follows the theme's tempo through its duration token, never scaled twice (spec:AST-108 FR2)" , async ( ) => {
391391 // A theme at tempo 1.5 writes the scaled token beside its tempo.
392- await changeOnce (
393- '--duration-medium-min: 465ms; --_astryx-motion-tempo: 1.5' ,
394- ) ;
392+ await changeOnce ( '--duration-medium: 615ms; --_astryx-motion-tempo: 1.5' ) ;
395393 const follower = played . find ( p => ( p . element as HTMLElement ) . id === 'a' ) ;
396394 const own = played . find ( p => ( p . element as HTMLElement ) . id === 'changed' ) ;
397- expect ( Number ( follower ?. options . duration ) ) . toBeCloseTo ( 465 , 6 ) ;
395+ expect ( Number ( follower ?. options . duration ) ) . toBeCloseTo ( 615 , 6 ) ;
398396 expect ( own ?. options . duration ) . toBe ( follower ?. options . duration ) ;
399397 } ) ;
400398
401399 it ( 'lands at once when the theme sets a zero duration' , async ( ) => {
402- await changeOnce ( '--duration-medium-min : 0ms' ) ;
400+ await changeOnce ( '--duration-medium: 0ms' ) ;
403401 expect ( played ) . toEqual ( [ ] ) ;
404402 } ) ;
405403
@@ -424,7 +422,7 @@ describe('one shared motion (spec:AST-105 FR4)', () => {
424422 it ( 'retargets an element already gliding: one glide, started from where it is on screen' , async ( ) => {
425423 // A long, even curve, so the first glide still moves fast 100 ms in.
426424 const { area, changed, phase} = setUp (
427- '<div id="area" style="--duration-medium-min : 1000ms; --ease-move: cubic-bezier(0, 0, 1, 1)"><div id="changed"></div><div id="a"></div></div>' ,
425+ '<div id="area" style="--duration-medium: 1000ms; --ease-move: cubic-bezier(0, 0, 1, 1)"><div id="changed"></div><div id="a"></div></div>' ,
428426 ) ;
429427 const a = document . getElementById ( 'a' ) as HTMLElement ;
430428 let top = 0 ;
@@ -759,14 +757,14 @@ describe('the indicator transition', () => {
759757 expect ( chevron . style . getPropertyValue ( 'transition-timing-function' ) ) . toBe (
760758 'cubic-bezier(0.24, 1, 0.4, 1)' ,
761759 ) ;
762- expect ( chevron . style . getPropertyValue ( 'transition-duration' ) ) . toBe ( '310ms ' ) ;
760+ expect ( chevron . style . getPropertyValue ( 'transition-duration' ) ) . toBe ( '410ms ' ) ;
763761 applyLayoutChangeTransition ( null , chevron ) ;
764762 expect ( chevron . style . getPropertyValue ( 'transition-duration' ) ) . toBe ( '' ) ;
765763 } ) ;
766764
767765 it ( 'takes the timing read where the area is, whatever scope sits between them' , ( ) => {
768- document . body . innerHTML = `<div id="area" style="--duration-medium-min : 465ms; --ease-move: cubic-bezier(0, 0, 0.2, 1)">
769- <div style="--duration-medium-min : 620ms; --ease-move: cubic-bezier(0.3, 1.2, 0.5, 1)"><svg id="chevron"></svg></div></div>` ;
766+ document . body . innerHTML = `<div id="area" style="--duration-medium: 465ms; --ease-move: cubic-bezier(0, 0, 0.2, 1)">
767+ <div style="--duration-medium: 620ms; --ease-move: cubic-bezier(0.3, 1.2, 0.5, 1)"><svg id="chevron"></svg></div></div>` ;
770768 const area = document . getElementById ( 'area' ) as HTMLElement ;
771769 const chevron = document . getElementById (
772770 'chevron' ,
0 commit comments