Skip to content

Commit

Permalink
Make transition_combined_duration_at consider duration and delay valu…
Browse files Browse the repository at this point in the history
…e are used by repeating the list of values if the given index is greater than the list length
  • Loading branch information
Hiroyuki Ikezoe committed Jan 4, 2018
1 parent 782e3fe commit 18a99e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/style/properties/gecko.mako.rs
Expand Up @@ -3298,7 +3298,8 @@ fn static_assert() {

pub fn transition_combined_duration_at(&self, index: usize) -> f32 {
// https://drafts.csswg.org/css-transitions/#transition-combined-duration
self.gecko.mTransitions[index].mDuration.max(0.0) + self.gecko.mTransitions[index].mDelay
self.gecko.mTransitions[index % self.gecko.mTransitionDurationCount as usize].mDuration.max(0.0)
+ self.gecko.mTransitions[index % self.gecko.mTransitionDelayCount as usize].mDelay
}

pub fn set_transition_property<I>(&mut self, v: I)
Expand Down

0 comments on commit 18a99e5

Please sign in to comment.