@@ -239,6 +239,31 @@ describe("runtime sub-composition placement", () => {
239239 expect ( shownX ( ) ) . toBe ( 75 ) ;
240240 } ) ;
241241
242+ it ( "keeps a slow scene Studio stamped animating past its stamp, once the root has grown" , ( ) => {
243+ const parent = window . parent ;
244+ Object . defineProperty ( window , "parent" , { configurable : true , value : { } } ) ;
245+ try {
246+ // What Studio leaves after a root extension: the host's discovery stamp still ends at 10 s.
247+ document . body . innerHTML =
248+ `<div data-composition-id="main" data-root="true" data-duration="20">` +
249+ `<div id="host" style="position: absolute" data-composition-id="scene" data-playback-rate="0.5"` +
250+ ` data-start="0" data-duration="10" data-hf-autostamped="1"><div id="s"></div></div></div>` ;
251+ const scene = gsap
252+ . timeline ( { paused : true } )
253+ . to ( "#s" , { x : 100 , duration : 8 , ease : "none" } , 0 ) ;
254+ const root = gsap . timeline ( { paused : true } ) . to ( { } , { duration : 20 } , 0 ) ;
255+ window . __timelines = { main : root , scene } as unknown as Record < string , RuntimeTimelineLike > ;
256+ initSandboxRuntimeModular ( ) ;
257+
258+ window . __player ?. seek ( 6 ) ;
259+ window . __player ?. seek ( 12 ) ;
260+ expect ( shownX ( ) ) . toBe ( 75 ) ;
261+ expect ( getComputedStyle ( document . getElementById ( "host" ) ! ) . visibility ) . not . toBe ( "hidden" ) ;
262+ } finally {
263+ Object . defineProperty ( window , "parent" , { configurable : true , value : parent } ) ;
264+ }
265+ } ) ;
266+
242267 it ( "renders a scene past its clip's end where root propagation leaves it, replaying no callbacks" , ( ) => {
243268 document . body . innerHTML =
244269 `<div data-composition-id="main" data-root="true" data-duration="10">` +
0 commit comments