Fix transition toggle & cancellation & delay (#35978)

More details in Stylo PR: https://github.com/servo/stylo/pull/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 https://github.com/servo/servo/issues/35833
- fixes https://github.com/servo/servo/issues/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 <yezhizhenjiakang@gmail.com>
This commit is contained in:
Euclid Ye 2025-04-07 22:51:32 +08:00 committed by GitHub
parent 4f41354349
commit 3242592f34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 220 additions and 19 deletions

View file

@ -448575,7 +448575,7 @@
[]
],
"helper.js": [
"a37aae918300d1136debbebbfbb75d46259e0bce",
"0ccfe2648ea297fb55360bfa4e47e371a34a7168",
[]
],
"import-green.css": [
@ -605974,6 +605974,13 @@
{}
]
],
"transition-remove-and-change-immediate.html": [
"717436436302504ce8f068f56dfbba4a6671cce5",
[
null,
{}
]
],
"transition-reparented.html": [
"3dfd19425fcaa76051618113bfb4793baf06f364",
[
@ -605981,6 +605988,13 @@
{}
]
],
"transition-zero-duration-with-delay.html": [
"0b6b9c37a9b2a1c225889c1f362beb9d559c25d7",
[
null,
{}
]
],
"transitioncancel-001.html": [
"6546195259fd9d1870942402fa80d1cb0ff13ea4",
[
@ -605997,6 +606011,13 @@
{}
]
],
"transitioncancel-003.html": [
"1c47b3084d486eaaa8218defa689bd7cc4af357c",
[
null,
{}
]
],
"transitionevent-interface.html": [
"a40ba4537518361c13aab1d9b0648387f7c88aaa",
[

View file

@ -16,6 +16,3 @@
[Transitions update when the writing-mode is changed through a CSS variable]
expected: FAIL
[Transitions from physical to logical update when the direction is changed]
expected: FAIL