mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Upgrade Stylo to 2025-02-03 (#35289)
* Upgrade Stylo to 2025-02-03 Signed-off-by: Oriol Brufau <obrufau@igalia.com> * Fixup for https://phabricator.services.mozilla.com/D233218 Signed-off-by: Oriol Brufau <obrufau@igalia.com> * Fixup for https://phabricator.services.mozilla.com/D233758 Signed-off-by: Oriol Brufau <obrufau@igalia.com> * Fixup for https://phabricator.services.mozilla.com/D231255 Signed-off-by: Oriol Brufau <obrufau@igalia.com> * Update test expectations Signed-off-by: Oriol Brufau <obrufau@igalia.com> --------- Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
e2bb772669
commit
fdbfecf7dd
16 changed files with 44 additions and 197 deletions
|
@ -106,7 +106,7 @@ fn convert_gradient_stops(
|
|||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
assert!(stop_items.len() >= 2);
|
||||
assert!(!stop_items.is_empty());
|
||||
|
||||
// Run the algorithm from
|
||||
// https://drafts.csswg.org/css-images-3/#color-stop-syntax
|
||||
|
@ -198,6 +198,9 @@ fn convert_gradient_stops(
|
|||
color: style.resolve_color(stop.color).to_layout(),
|
||||
})
|
||||
}
|
||||
if stop_items.len() == 1 {
|
||||
stops.push(stops.stops()[0])
|
||||
}
|
||||
stops
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue