diff options
author | Boris Chiou <boris.chiou@gmail.com> | 2019-01-12 02:22:39 +0000 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-01-13 21:58:44 +0100 |
commit | 2b77a29697840f64201f6a5a3080dbdfb83ac9eb (patch) | |
tree | 8a4fb99ee5efc47657cde1f1b754dd88e0ba458c /components/script/dom/bindings/codegen/CodegenRust.py | |
parent | a8943d2ec519c4fce68fffcee4e6512e63eb4602 (diff) | |
download | servo-2b77a29697840f64201f6a5a3080dbdfb83ac9eb.tar.gz servo-2b77a29697840f64201f6a5a3080dbdfb83ac9eb.zip |
style: Implement Animate for track lists on grid-template-{columns|rows}.
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1348519#c6 and
https://github.com/w3c/csswg-drafts/issues/3201:
Currently grid-template-rows/columns interpolate “per computed value”, which
means that if the number of tracks differs, or any track changes to/from a
particular keyword value to any other value, or if a line name is added/removed
at any position, the entire track listing is interpolated as “discrete”.
But we "agree" with two more granular options:
1. Check interpolation type per track, rather than for the entire list, before
falling back to discrete. I.e. a length-percentage track can animate between
two values while an adjacent auto track flips discretely to min-content.
2. Allow discrete interpolation of line name changes independently of track
sizes.
Besides, for the repeat() function, it's complicated to support interpolation
between different repeat types (i.e. auto-fill, auto-fit) and different repeat
counts, so we always fall-back to discrete if the first parameter of repeat()
is different.
Differential Revision: https://phabricator.services.mozilla.com/D16129
Diffstat (limited to 'components/script/dom/bindings/codegen/CodegenRust.py')
0 files changed, 0 insertions, 0 deletions