Skip to content

Commit f0e6bfb

Browse files
Psychpsyogmta
authored andcommitted
LibWeb: Reimport transitioncancel-003.html to make it less flaky
1 parent b3c186c commit f0e6bfb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Tests/LibWeb/Text/input/wpt-import/css/css-transitions/transitioncancel-003.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<script>
1818
promise_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
@@ -29,30 +29,30 @@
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>

0 commit comments

Comments
 (0)