Commit graph

160 commits

Author SHA1 Message Date
bors-servo
9e528b8124
Auto merge of #26806 - mrobinson:animations-cascade, r=emilio
Include animations and transitions in the cascade

Instead of applying animations and transitions to styled elements,
include them in the cascade. This allows them to interact properly with
things like font-size and !important rules.

<!-- Please describe your changes on the following line: -->

---
<!-- 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] 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. -->
2020-06-10 14:14:03 -04:00
WPT Sync Bot
7ef7c78b1b Update web-platform-tests to revision 57727f82763c80c89a94593a7b0960abcf4daa4a 2020-06-10 10:42:31 +00:00
Josh Matthews
4c6f01b60a
Fix 2020 result. 2020-06-09 17:50:51 -04:00
Josh Matthews
8ab195652e
Fix 2020 result. 2020-06-09 17:50:28 -04:00
WPT Sync Bot
2a42c14544 Update web-platform-tests to revision a5cb9597799c5f9bf0a809006161a0c50055828f 2020-06-09 10:26:43 +00:00
Martin Robinson
364235ac0c Include animations and transitions in the cascade
Instead of applying animations and transitions to styled elements,
include them in the cascade. This allows them to interact properly with
things like font-size and !important rules.
2020-06-09 11:41:07 +02:00
bors-servo
0645d8c36d
Auto merge of #26805 - mrobinson:add-pseudo-tag-to-layout-2020, r=SimonSapin
layout_2020: Tag fragments with their pseudo content type

This will allow us to answer queries and properly handle animations in
the future for fragments generated for pseudo content.

<!-- Please describe your changes on the following line: -->

---
<!-- 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] 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. -->
2020-06-06 13:26:19 -04:00
Martin Robinson
89855afa4d layout_2020: Tag fragments with their pseudo content type
This will allow us to answer queries and properly handle animations in
the future for fragments generated for pseudo content.
2020-06-06 17:25:08 +02:00
Martin Robinson
b875f14e86 Better computation of animation keyframes
This begins to address #26625 by properly applying CSS variables during
keyframe computation and no longer using `apply_declarations`. Instead,
walk the declarations, combining them into IntermediateComputedKeyframe,
maintaining declarations that modify CSS custom properties. Then compute
a set of AnimationValues for each keyframe and use those to produce
interpolated animation values.
2020-06-05 13:40:29 +02:00
Josh Matthews
e744e0935f
Remove non-2020 failure. 2020-06-02 22:37:53 -04:00
WPT Sync Bot
7f8c29593f Update web-platform-tests to revision fd60ba25a0726dfea59024d8143240b355c46a55 2020-06-02 13:10:28 +00:00
WPT Sync Bot
ce1de3b503 Update web-platform-tests to revision c99723afe33bc5b265e41c1a9446eaff7f8e0d57 2020-05-31 11:24:52 +00:00
Josh Matthews
9e9a1b2aa4
Add 2020 failure. 2020-05-30 11:21:32 -04:00
WPT Sync Bot
1c115a1737 Update web-platform-tests to revision 8fd32a0f7c18d32ae9e147d267746accc3ee9ad5 2020-05-30 10:56:10 +00:00
Josh Matthews
791a96efc4
Remove non-2020 failure. 2020-05-29 16:39:28 -04:00
WPT Sync Bot
4702cbe05c Update web-platform-tests to revision e529eb9501876273c9612f5602bc530723a01147 2020-05-29 11:22:44 +00:00
WPT Sync Bot
1b463fce85 Update web-platform-tests to revision 5c34fc630374b9eb0559139a486ff1a2e4247c4f 2020-05-28 11:23:41 +00:00
bors-servo
9f0ec12863 Auto merge of #26664 - servo-wpt-sync:wpt_update_26-05-2020, r=servo-wpt-sync
Sync WPT with upstream (26-05-2020)

Automated downstream sync of changes from upstream as of 26-05-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-05-27 05:38:27 -04:00
Martin Robinson
77aa3721c5 Add support for remaining animation and transition events
Fixes #21564.
2020-05-26 20:34:58 +02:00
WPT Sync Bot
fc2af06212 Update web-platform-tests to revision 82b3595ce0ea99dd2a04b578421b4d281e53ee31 2020-05-26 11:20:12 +00:00
bors-servo
641eb362e8
Auto merge of #26637 - servo-wpt-sync:wpt_update_25-05-2020, r=servo-wpt-sync
Sync WPT with upstream (25-05-2020)

Automated downstream sync of changes from upstream as of 25-05-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-05-25 19:40:52 -04:00
bors-servo
2fd427270d
Auto merge of #26609 - mrobinson:improve-transition-finishing, r=jdm
Improve ending of transitions

For legacy reasons, transitions were marked as finished after updating the
style. According to the spec, they should be marked as finished when
animations are updated and before restyle. This change does that as well
as preventing replacement of finished transitions.

Having finished transitions survive a full restyle cycle and allowing
the replacement of finished transition could lead to issues where
animations are removed from the global list of animating transitions
too soon:

 1. A transitions finishes
 2. Restyle
 3. The transition is marked as finished and events are queued
 4. Restyle cancels finished transition and replaces it instead of
    clearing finished transition
 5. Events are sent for the incorrectly canceled transition, removing it
    completely from the list of running transitions due to the extra
    event.

---
<!-- 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] There are tests for these changes
2020-05-25 11:07:50 -04:00
WPT Sync Bot
68953a4264 Update web-platform-tests to revision b577b1f9580a61524cde099a7763edb96c810faa 2020-05-25 11:29:39 +00:00
WPT Sync Bot
fc3c55d44b Update web-platform-tests to revision be4a903bca0a01b794bebf486f707c9f8e9e9ff6 2020-05-24 11:12:07 +00:00
WPT Sync Bot
8bfe9992ce Update web-platform-tests to revision 1d8a9889466f2ec219a879323c63cae86ef50bc1 2020-05-23 10:45:50 +00:00
WPT Sync Bot
e9b62f1a9b Update web-platform-tests to revision 31500c8726aeb1871bc5ca19642f5cb94a0e1a92 2020-05-22 11:27:02 +00:00
Martin Robinson
218beb9218 Improve ending of transitions
For legacy reasons, transitions were marked as finished after updating the
style. According to the spec, they should be marked as finished when
animations are updated and before restyle. This change does that as well
as preventing replacement of finished transitions.

Having finished transitions survive a full restyle cycle and allowing
the replacement of finished transition, could lead to issues were
removed from the global list of animating transitions too soon:

 1. A transitions finishes
 2. Restyle
 3. Transitions is marked as finished and events are queued
 4. Restyle cancels finished transition and replaces it instead of
    clearing finished transition
 5. Events are sent for the incorrectly canceled transition removing it
    completely from the list of running transitions due to the extra
    event.
2020-05-21 19:56:29 +02:00
bors-servo
70700c20ed
Auto merge of #26594 - mrobinson:animationiteration, r=jdm
Implement animationiteration event

This event is triggered when an animation iterates. This change also
moves iteration out of style calculation to an "update animations" which
is the next part of having animation event handling match the HTML spec.

This change causes a few more tests to pass. Some of the other tests which
exercise this functionality require `animationstart` 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
- [ ] These changes fix #___ (GitHub issue number if applicable)
- [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. -->
2020-05-21 10:11:45 -04:00
Martin Robinson
873cdd1336 Implement animationiteration event
This event is triggered when an animation iterates. This change also
moves iteration out of style calculation to an "update animations" which
is the next part of having animation event handling match the HTML spec.
2020-05-21 15:19:34 +02:00
WPT Sync Bot
bc7c10c2ce Update web-platform-tests to revision da0a378536add99eaffc33f733b5960457bd38df 2020-05-21 11:14:28 +00:00
WPT Sync Bot
9309f626be Update web-platform-tests to revision cf926057109b153af54214d52a2b3d746269d434 2020-05-20 11:11:35 +00:00
bors-servo
7c5c105d03
Auto merge of #26567 - servo-wpt-sync:wpt_update_19-05-2020, r=jdm
Sync WPT with upstream (19-05-2020)

Automated downstream sync of changes from upstream as of 19-05-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-05-19 21:30:20 -04:00
Josh Matthews
e9795574e0
Add 2020 failure. 2020-05-19 08:20:30 -04:00
WPT Sync Bot
9cff065d01 Update web-platform-tests to revision 7cb66930f16381536cec572cd3f4f86c7bbb6787 2020-05-19 11:08:36 +00:00
Martin Robinson
acca20d544 Update test expectations 2020-05-19 10:02:03 +02:00
WPT Sync Bot
4f13fd6595 Update web-platform-tests to revision afb5f984d7beecafa3d68ea7719ae2f4d203f1e1 2020-05-18 11:17:09 +00:00
WPT Sync Bot
f67126ace0 Update web-platform-tests to revision e6695b77fc9bb1e5c71ce474c4e7f8784713c754 2020-05-17 11:07:53 +00:00
bors-servo
0a00ea3db3
Auto merge of #26545 - servo-wpt-sync:wpt_update_16-05-2020, r=servo-wpt-sync
Sync WPT with upstream (16-05-2020)

Automated downstream sync of changes from upstream as of 16-05-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-05-16 09:47:12 -04:00
WPT Sync Bot
6f4d1ac19b Update web-platform-tests to revision 823cca0c2c6b421912973e7f699a357411738c64 2020-05-16 10:41:56 +00:00
bors-servo
afc4e7ec25
Auto merge of #26537 - mrobinson:backface, r=SimonSapin
layout_2020: Implement support for backface-visibility

<!-- Please describe your changes on the following line: -->

---
<!-- 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] 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. -->
2020-05-16 03:43:48 -04:00
Martin Robinson
c2875482d6 layout_2020: Implement support for backface-visibility 2020-05-16 09:42:45 +02:00
bors-servo
6cc582992e
Auto merge of #26538 - servo-wpt-sync:wpt_update_15-05-2020, r=jdm
Sync WPT with upstream (15-05-2020)

Automated downstream sync of changes from upstream as of 15-05-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-05-16 01:06:22 -04:00
Josh Matthews
c71d9a6638
Add new outline-offset 2020 failure. 2020-05-15 09:26:00 -04:00
Martin Robinson
a024ecccba Update WPT expectations 2020-05-15 13:37:09 +02:00
WPT Sync Bot
db12fbb0be Update web-platform-tests to revision 73bd4355b891665829c66e1b83d64bcc29197a16 2020-05-15 10:39:22 +00:00
WPT Sync Bot
96553cb7e2 Update web-platform-tests to revision ae1e2d51f38e208f3d07a97b5d82f9ca0dda2c94 2020-05-14 11:21:00 +00:00
WPT Sync Bot
ab5c81c0bb Update web-platform-tests to revision 85ffed21f7a96f6d67a5a0110459d67f50cff624 2020-05-13 11:06:53 +00:00
Josh Matthews
bba2e43f97 Update 2020 results for outline-width animation. 2020-05-12 10:51:45 -04:00
Josh Matthews
9ecf7c0f51
Add outline-width parsing failure. 2020-05-12 10:44:49 -04:00
Josh Matthews
5261140293
Remove intermittent crash. 2020-05-12 10:41:46 -04:00