File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Tests/LibWeb/Text/input/wpt-import/css/css-transitions Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1717< script >
1818promise_test ( async t => {
1919 const div = addDiv ( t , {
20- style : 'transition: width 100ms ; width: 0px;'
20+ style : 'transition: width 5000ms ; width: 0px;'
2121 } ) ;
2222
2323 // Flush initial state
2929 div . addEventListener ( 'transitionrun' , resolve , { once : true } ) ;
3030 } ) ;
3131
32- // MID-TRANSITION CHANGE: Switch to 0s duration + 100ms delay
33- div . style . transition = 'width 0s 100ms ' ;
32+ // MID-TRANSITION CHANGE: Switch to 0s duration + 5000ms delay
33+ div . style . transition = 'width 0s 5000ms ' ;
3434 assert_not_equals (
3535 getComputedStyle ( div ) . width ,
3636 '100px' ,
3737 'Width should not reach 100px yet'
3838 ) ;
3939
4040 // Trigger new width change mid-transition
41- div . style . width = '0px ' ;
41+ div . style . width = '200px ' ;
4242
4343 assert_not_equals (
4444 getComputedStyle ( div ) . width ,
45- '0px ' ,
46- 'Width should not changed to 0px immediately'
45+ '200px ' ,
46+ 'Width should not change to 0px immediately'
4747 ) ;
4848
4949 await waitForTransitionEnd ( div ) ;
5050
5151 // Final computed style
5252 assert_equals (
5353 getComputedStyle ( div ) . width ,
54- '0px ' ,
55- 'Final width should be 0px '
54+ '200px ' ,
55+ 'Final width should be 200px '
5656 ) ;
5757} , 'Mid-transition transition changes affect subsequent transitions' ) ;
5858</ script >
You can’t perform that action at this time.
0 commit comments