Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd animation and transition support for pseudo-elements #26923
Conversation
highfive
commented
Jun 15, 2020
|
Heads up! This PR modifies the following files:
|
tests/wpt/metadata/css/css-animations/animationevent-pseudoelement.html.ini
Outdated
Show resolved
Hide resolved
| @@ -2,12 +2,6 @@ | |||
| [transition padding-left on :before / values] | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
mrobinson
Jun 16, 2020
•
Author
Member
It looks like this test triggers a bug in Layout 2013, where pseudo content that has an empty content string is not represented properly in the flow tree. I've confirmed that the tests pass when these test cases use a non-empty content string.
f8397f0
to
d53782b
|
Thanks for the reviews. I've incorporated your suggested change and this PR should be ready to review and merge whenever. |
|
This looks pretty sensible to me, with a follow-up PR (or at least issue on file) to unify those structs. Thanks! |
This change extends the DocumentAnimationSet to hold animations for pseudo-elements. Since pseudo-elements in Servo are not in the DOM like in Gecko, they need to be handled a bit carefully in stylo. When a pseudo-element has an animation, recascade the style. Finally, this change passes the pseudo-element string properly to animation events. Fixes: #10316
d53782b
to
f3e373b
|
@bors-servo r=emilio Thanks again for the reviews! |
|
|
Add animation and transition support for pseudo-elements This change extends the DocumentAnimationSet to hold animations for pseudo-elements. Since pseudo-elements in Servo are not in the DOM like in Gecko, they need to be handled a bit carefully in stylo. When a pseudo-element has an animation, recascade the style. Finally, this change passes the pseudo-element string properly to animation events. --- <!-- 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 fix #10316 - [x] There are tests for these changes <!-- 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. -->
|
|
|
@bors-servo retry |
|
|
mrobinson commentedJun 15, 2020
•
edited
This change extends the DocumentAnimationSet to hold animations for
pseudo-elements. Since pseudo-elements in Servo are not in the DOM like
in Gecko, they need to be handled a bit carefully in stylo. When a
pseudo-element has an animation, recascade the style. Finally, this
change passes the pseudo-element string properly to animation events.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors