mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
d975b03929
Per spec, we define starting style for an element as the after-change style with @starting-style rules applied in addition. If an element does not have a before-change style for a given style change event, the starting style is used instead of the before-change style to compare with the after-change style to start transitions. The basic idea in this patch is: 1. We add a flag to indicate if this element may have starting style. We set this flag during its full matching, and store this flag in the element data. 2. So during process animations, we check this flag, if this element may have starting style and specifies transitions, we resolve the starting style. Use it as the before-change style. The implmentation in process_animations() and tests are in the following patches. Differential Revision: https://phabricator.services.mozilla.com/D208570 |
||
---|---|---|
.. | ||
tests | ||
Cargo.toml | ||
cbindgen.toml | ||
error_reporter.rs | ||
glue.rs | ||
lib.rs | ||
stylesheet_loader.rs |