mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Upgrade stylo to 2024-09-02 (#33370)
* Upgrade stylo to 2024-09-02 Signed-off-by: Oriol Brufau <obrufau@igalia.com> * Fixup for https://phabricator.services.mozilla.com/D217308 Signed-off-by: Oriol Brufau <obrufau@igalia.com> * Fixup for https://phabricator.services.mozilla.com/D217626 Signed-off-by: Oriol Brufau <obrufau@igalia.com> * Fixup for https://phabricator.services.mozilla.com/D218488 Signed-off-by: Oriol Brufau <obrufau@igalia.com> * Fixup for https://phabricator.services.mozilla.com/D219537 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
261d60e456
commit
a76daaf04c
9 changed files with 68 additions and 63 deletions
|
@ -3,11 +3,16 @@
|
|||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use style::color::{AbsoluteColor, ColorSpace};
|
||||
use style::values::animated::{Animate, Procedure, ToAnimatedValue};
|
||||
use style::properties::style_structs::Font;
|
||||
use style::properties::ComputedValues;
|
||||
use style::values::animated::{Animate, Context, Procedure, ToAnimatedValue};
|
||||
|
||||
fn interpolate_color(from: AbsoluteColor, to: AbsoluteColor, progress: f64) -> AbsoluteColor {
|
||||
let from = from.to_animated_value();
|
||||
let to = to.to_animated_value();
|
||||
let context = Context {
|
||||
style: &ComputedValues::initial_values_with_font_override(Font::initial_values()),
|
||||
};
|
||||
let from = from.to_animated_value(&context);
|
||||
let to = to.to_animated_value(&context);
|
||||
AbsoluteColor::from_animated_value(
|
||||
from.animate(&to, Procedure::Interpolate { progress })
|
||||
.unwrap(),
|
||||
|
|
|
@ -134,7 +134,7 @@ fn test_report_error_stylesheet() {
|
|||
(
|
||||
14,
|
||||
52,
|
||||
"Unsupported keyframe property declaration: 'margin: 0 invalid 0;'",
|
||||
"Unsupported property declaration: 'margin: 0 invalid 0;'",
|
||||
),
|
||||
]);
|
||||
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
[calc-infinity-nan-computed.html]
|
||||
[Property width value 'calc(min(NaN * 1px, infinity * 1px) + max(infinity * 1px, -infinity * 1px))']
|
||||
expected: FAIL
|
||||
|
||||
[Property rotate(calc(infinity * 1deg)) value expected same with rotate(0deg) in +/-0.0001]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -38,12 +35,6 @@
|
|||
[Property rotate(calc(NaN * 1grad)) value expected same with rotate(0grad) in +/-0.0001]
|
||||
expected: FAIL
|
||||
|
||||
[Property width value 'max(15px, NaN * 1px)']
|
||||
expected: FAIL
|
||||
|
||||
[Property width value 'max(NaN * 1px, 15px)']
|
||||
expected: FAIL
|
||||
|
||||
[Property rotate(calc(infinity * 1turn)) value expected same with rotate(0deg) in +/-0.0001]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
[calc-infinity-nan-serialize-length.html]
|
||||
['calc(1 * max(nAn*2px, 0px))' as a specified value should serialize as 'calc(NaN * 1px)'.]
|
||||
expected: FAIL
|
||||
|
||||
['calc(1 * min(nan*3px, 0px))' as a specified value should serialize as 'calc(NaN * 1px)'.]
|
||||
expected: FAIL
|
||||
|
||||
['calc(1 * min(NaN * 1pt, NaN * 1cm))' as a specified value should serialize as 'calc(NaN * 1px)'.]
|
||||
expected: FAIL
|
||||
|
||||
['calc(1 * max(NaN * 1cm, NaN * 2Q))' as a specified value should serialize as 'calc(NaN * 1px)'.]
|
||||
expected: FAIL
|
||||
|
||||
['calc(1 * min(NaN * 2px, NaN * 4em))' as a specified value should serialize as 'calc(NaN * 1px)'.]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue