mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Fix an off-by-one in the transition property iterator.
By the time we get to iterate over the longhands of a shorthand, we've already advanced the range iterator, so we look at the next duration and such, which causes this bug. I'm seriously baffled that no existing test caught this when it landed, neither in our internal test suite nor wpt... :/ Differential Revision: https://phabricator.services.mozilla.com/D82396
This commit is contained in:
parent
1f9d6ad5ef
commit
1c8d4be6b2
1 changed files with 1 additions and 1 deletions
|
@ -820,7 +820,7 @@ impl<'a> Iterator for TransitionPropertyIterator<'a> {
|
|||
if let Some(longhand_id) = longhand_iterator.next() {
|
||||
return Some(TransitionPropertyIteration {
|
||||
longhand_id,
|
||||
index: self.index_range.start,
|
||||
index: self.index_range.start - 1,
|
||||
});
|
||||
}
|
||||
self.longhand_iterator = None;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue