Fix transition toggle & cancellation & delay#35978
Conversation
afb5c5a to
4a8883b
Compare
|
Just rebased on latest main and running new test. |
4a8883b to
2541991
Compare
|
Latest successful run. Already applied optimization revamp commit. |
2541991 to
a41a978
Compare
|
🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#51439) with upstreamable changes. |
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#51439) title and body. |
2 similar comments
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#51439) title and body. |
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#51439) title and body. |
a41a978 to
4168477
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#51439). |
4168477 to
128a788
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#51439). |
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#51439) title and body. |
128a788 to
778c53d
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#51439). |
778c53d to
9bc85b9
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#51439). |
9bc85b9 to
fc3717c
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#51439). |
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#51439). |
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#51439) title and body. |
92cbd5b to
60ccdc4
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#51439). |
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#51439) title and body. |
|
I just added tests for all behaviours that was problematic before. CI is passing too. Please review this when you got time :) @Loirooriol |
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#51439). |
Loirooriol
left a comment
There was a problem hiding this comment.
Sorry for the delay reviewing this
tests/wpt/tests/css/css-transitions/transition-remove-and-change-immediate.html
Outdated
Show resolved
Hide resolved
tests/wpt/tests/css/css-transitions/transition-remove-and-change-immediate.html
Outdated
Show resolved
Hide resolved
tests/wpt/tests/css/css-transitions/transition-remove-and-change-immediate.html
Outdated
Show resolved
Hide resolved
| assert_approx_equals( | ||
| elapsed, 300, 30, // Allow 30ms tolerance | ||
| 'Transition should complete after approximately 300ms' | ||
| ); |
There was a problem hiding this comment.
I'm concerned that this could be a source of instability. If e.g. the same thread is used to run various tests simultaneously and there are CPU intensive things happening, then I guess the transitionend event could be delivered later.
What's the point of the check, ensuring that the transition doesn't finish immediately? Maybe assert_greater_than would be better?
There was a problem hiding this comment.
I checked this to ensure the 0.3s delay is almost accurately executed.
I had this concern before, but later it never seems to happen. But you have the point.
tests/wpt/tests/css/css-transitions/transition-zero-duration-with-delay.html
Outdated
Show resolved
Hide resolved
| getComputedStyle(div).width; | ||
| // Start first transition to 100px | ||
| div.style.width = '100px'; | ||
| // Wait until transition is 25% done (500ms) |
There was a problem hiding this comment.
Why keep waiting until 25%, and not just until transitionrun?
There was a problem hiding this comment.
I just felt natural to write like this. But you are right. I've changed it.
0bdc692 to
5f61569
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#51439). |
1 similar comment
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#51439). |
5f61569 to
bb2837a
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#51439). |
|
@Loirooriol @xiaochengh Should I Chrome report: very close but still smaller than expected |
|
Is the timing check an important part of the test? Would it be fine to drop it? It seems to fit a bit within the umbrella of https://web-platform-tests.org/writing-tests/testharness-api.html#timers-in-tests
|
|
Ok I will drop it. |
bb2837a to
568a10f
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#51439). |
|
It seems DCO check wasn't triggered. I will try a rebase. |
568a10f to
68cb614
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#51439). |
Signed-off-by: Euclid Ye <[email protected]>
68cb614 to
bd8d16d
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#51439). |
|
⛔ Failed to properly merge the upstream pull request (web-platform-tests/wpt#51439). Please address any CI issues and try to merge manually. |
More details in Stylo PR: servo/stylo#145 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes - fixes servo#35833 - fixes servo#35982 <!-- Either: --> - [x] There are new passing test: `css/css-logical/animation-004.html: Transitions from physical to logical update when the direction is changed` Created new test files as well: 1. `css-transitions/transition-remove-and-change-immediate.html` 2. `css-transitions/transition-zero-duration-with-delay.html` 3. `css-transitions/transitioncancel-003.html` <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> cc @Asun0204 @xiaochengh @stevennovaryo Signed-off-by: Euclid Ye <[email protected]>
….html` (#37179) Fix the mistake I made in #35978 Testing: No behaviour change. Signed-off-by: Euclid Ye <[email protected]>
More details in Stylo PR: servo/stylo#145
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorscss/css-logical/animation-004.html: Transitions from physical to logical update when the direction is changedCreated new test files as well:
css-transitions/transition-remove-and-change-immediate.htmlcss-transitions/transition-zero-duration-with-delay.htmlcss-transitions/transitioncancel-003.htmlcc @Asun0204 @xiaochengh @stevennovaryo