Truly independent web browser
LibWeb: Combine four-sided border-image values side by side
Andreas Klinge0ac32281a88
diff --git a/Libraries/LibWeb/Rust/src/css/animation.rs b/Libraries/LibWeb/Rust/src/css/animation.rsindex c89dfc9eee3..e780d0429d0 100644--- a/Libraries/LibWeb/Rust/src/css/animation.rs+++ b/Libraries/LibWeb/Rust/src/css/animation.rs@@ -7357,6 +7357,91 @@ fn interpolate_filter_list(})}+fn is_four_sided_property(property_id: u16) -> bool {+ matches!(+ property_id,+ crate::css::property_metadata::property_id::BORDER_IMAGE_OUTSET+ | crate::css::property_metadata::property_id::BORDER_IMAGE_WIDTH+ )+}++/// The top, right, bottom and left components of a value given as one to four sides.+fn expand_four_sides(value: &StyleValueData) -> Option<[RetainedStyleValueData; 4]> {+ // https://drafts.csswg.org/css-backgrounds/#border-image-outset+ // Computed value: four values, each a number or absolute length+ // https://drafts.csswg.org/css-backgrounds/#border-image-width+ // Computed value: four values, each either a number, the keyword auto, or a computed <length-percentage> value+ let sides = match value {+ StyleValueData::ValueList {+ values, separator: 0, ..+ } => values.as_slice(),+ StyleValueData::ValueList { .. } => return None,+ _ => {+ let side = RetainedStyleValueData::from_arc(Arc::new(value.clone()));+ return Some([side.clone(), side.clone(), side.clone(), side]);+ }+ };+ // https://drafts.csswg.org/css-backgrounds/#border-image-outset+ // If there is only one component value, it applies to all sides. If there are two values, the top and bottom are+ // set to the first value and the right and left are set to the second. If there are three values, the top is set+ // to the first value, the left and right are set to the second, and the bottom is set to the third. If there are+ // four values they apply to the top, right, bottom, and left, respectively.+ let (top, right, bottom, left) = match sides {+ [all] => (all, all, all, all),+ [vertical, horizontal] => (vertical, horizontal, vertical, horizontal),+ [top, horizontal, bottom] => (top, horizontal, bottom, horizontal),+ [top, right, bottom, left] => (top, right, bottom, left),+ _ => return None,+ };+ Some([top.clone(), right.clone(), bottom.clone(), left.clone()])+}++/// Builds the shortest one to four value list that expands to the given sides.+fn shortest_four_sides(sides: [RetainedStyleValueData; 4]) -> StyleValueData {+ let [top, right, bottom, left] = sides;+ let mut values = vec![top, right, bottom, left];+ if values[3].data() == values[1].data() {+ values.pop();+ if values[2].data() == values[0].data() {+ values.pop();+ if values[1].data() == values[0].data() {+ values.pop();+ }+ }+ }+ if values.len() == 1 {+ return values.pop().unwrap().data().clone();+ }+ StyleValueData::ValueList {+ values: RetainedStyleValueDataList::from_retained_values(values),+ separator: 0,+ collapsible: true,+ }+}++fn combine_four_sides(+ from: &StyleValueData,+ to: &StyleValueData,+ combine: impl Fn(&StyleValueData, &StyleValueData) -> AnimationValueResult,+) -> Option<AnimationValueResult> {+ let (Some(from_sides), Some(to_sides)) = (expand_four_sides(from), expand_four_sides(to)) else {+ return None;+ };+ let mut sides = Vec::with_capacity(4);+ for (from_side, to_side) in from_sides.iter().zip(&to_sides) {+ let result = combine(from_side.data(), to_side.data());+ if !result.handled {+ return None;+ }+ let Some(value) = result.value else {+ return Some(handled_without_value());+ };+ sides.push(value);+ }+ let sides: [RetainedStyleValueData; 4] = sides.try_into().ok()?;+ Some(owned(shortest_four_sides(sides)))+}+pub(crate) fn interpolate_value(context: Option<&FfiAnimationContext>,property_id: u16,@@ -7679,7 +7764,14 @@ pub(crate) fn interpolate_value(return discrete_value(context, from, to, delta);}assert_eq!(animation_type, ANIMATION_TYPE_BY_COMPUTED_VALUE);- let result = interpolate_scalar_value(property_id, from, to, delta, &[]);+ let result = if is_four_sided_property(property_id) {+ combine_four_sides(from, to, |from, to| {+ interpolate_scalar_value(property_id, from, to, delta, &[])+ })+ .unwrap_or_else(not_handled)+ } else {+ interpolate_scalar_value(property_id, from, to, delta, &[])+ };// https://drafts.csswg.org/web-animations-1/#by-computed-value// If the number of components or the types of corresponding components do not match, or if any component value uses discrete animation and the two corresponding values do not match, then the property values combine as discrete.if !result.handled || result.value.is_none() && context.is_some_and(|context| context.allow_discrete) {@@ -7723,6 +7815,11 @@ fn composite_batch_value<'a>(| crate::css::property_metadata::property_id::TEXT_SHADOW) {composite_shadow_list(context, underlying, animated, operation)+ } else if is_four_sided_property(property_id) {+ combine_four_sides(underlying, animated, |underlying, animated| {+ composite_scalar_value(underlying, animated, operation)+ })+ .unwrap_or_else(handled_without_value)} else if property_id == crate::css::property_metadata::property_id::OFFSET_PATH {composite_offset_path(underlying, animated, operation).map_or_else(handled_without_value, owned)} else if property_id == crate::css::property_metadata::property_id::OFFSET_ROTATE {diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-backgrounds/animations/border-image-outset-composition.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-backgrounds/animations/border-image-outset-composition.txtindex d7f6f0cc828..04588633bcc 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-backgrounds/animations/border-image-outset-composition.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-backgrounds/animations/border-image-outset-composition.txt@@ -2,8 +2,7 @@ Harness status: OKFound 112 tests-74 Pass-38 Fail+112 PassPass Compositing CSS Animations: property <border-image-outset> underlying [1 2 3 4] from add [1 2 3 4] to add [101 102 103 104] at (-0.25) should be [0]Pass Compositing CSS Animations: property <border-image-outset> underlying [1 2 3 4] from add [1 2 3 4] to add [101 102 103 104] at (0) should be [2 4 6 8]Pass Compositing CSS Animations: property <border-image-outset> underlying [1 2 3 4] from add [1 2 3 4] to add [101 102 103 104] at (0.25) should be [27 29 31 33]@@ -18,20 +17,20 @@ Pass Compositing Web Animations: property <border-image-outset> underlying [1 2Pass Compositing Web Animations: property <border-image-outset> underlying [1 2 3 4] from add [1 2 3 4] to add [101 102 103 104] at (0.75) should be [77 79 81 83]Pass Compositing Web Animations: property <border-image-outset> underlying [1 2 3 4] from add [1 2 3 4] to add [101 102 103 104] at (1) should be [102 104 106 108]Pass Compositing Web Animations: property <border-image-outset> underlying [1 2 3 4] from add [1 2 3 4] to add [101 102 103 104] at (1.25) should be [127 129 131 133]-Fail Compositing CSS Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (-0.25) should be [175 250 300 450]-Fail Compositing CSS Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0) should be [200 300 400 500]-Fail Compositing CSS Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.25) should be [225 350 500 550]-Fail Compositing CSS Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.5) should be [250 400 600 600]-Fail Compositing CSS Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.75) should be [275 450 700 650]-Fail Compositing CSS Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (1) should be [300 500 800 700]-Fail Compositing CSS Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (1.25) should be [325 550 900 750]-Fail Compositing Web Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (-0.25) should be [175 250 300 450]-Fail Compositing Web Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0) should be [200 300 400 500]-Fail Compositing Web Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.25) should be [225 350 500 550]-Fail Compositing Web Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.5) should be [250 400 600 600]-Fail Compositing Web Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.75) should be [275 450 700 650]-Fail Compositing Web Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (1) should be [300 500 800 700]-Fail Compositing Web Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (1.25) should be [325 550 900 750]+Pass Compositing CSS Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (-0.25) should be [175 250 300 450]+Pass Compositing CSS Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0) should be [200 300 400 500]+Pass Compositing CSS Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.25) should be [225 350 500 550]+Pass Compositing CSS Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.5) should be [250 400 600 600]+Pass Compositing CSS Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.75) should be [275 450 700 650]+Pass Compositing CSS Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (1) should be [300 500 800 700]+Pass Compositing CSS Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (1.25) should be [325 550 900 750]+Pass Compositing Web Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (-0.25) should be [175 250 300 450]+Pass Compositing Web Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0) should be [200 300 400 500]+Pass Compositing Web Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.25) should be [225 350 500 550]+Pass Compositing Web Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.5) should be [250 400 600 600]+Pass Compositing Web Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.75) should be [275 450 700 650]+Pass Compositing Web Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (1) should be [300 500 800 700]+Pass Compositing Web Animations: property <border-image-outset> underlying [100 200 300 400] from add [100] to add [200 300 500] at (1.25) should be [325 550 900 750]Pass Compositing CSS Animations: property <border-image-outset> underlying [1 2 3px 4px] from add [1 2 3px 4px] to add [101 102 103px 104px] at (-0.25) should be [0 0 0px 0px]Pass Compositing CSS Animations: property <border-image-outset> underlying [1 2 3px 4px] from add [1 2 3px 4px] to add [101 102 103px 104px] at (0) should be [2 4 6px 8px]Pass Compositing CSS Animations: property <border-image-outset> underlying [1 2 3px 4px] from add [1 2 3px 4px] to add [101 102 103px 104px] at (0.25) should be [27 29 31px 33px]@@ -46,20 +45,20 @@ Pass Compositing Web Animations: property <border-image-outset> underlying [1 2Pass Compositing Web Animations: property <border-image-outset> underlying [1 2 3px 4px] from add [1 2 3px 4px] to add [101 102 103px 104px] at (0.75) should be [77 79 81px 83px]Pass Compositing Web Animations: property <border-image-outset> underlying [1 2 3px 4px] from add [1 2 3px 4px] to add [101 102 103px 104px] at (1) should be [102 104 106px 108px]Pass Compositing Web Animations: property <border-image-outset> underlying [1 2 3px 4px] from add [1 2 3px 4px] to add [101 102 103px 104px] at (1.25) should be [127 129 131px 133px]-Fail Compositing CSS Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (-0.25) should be [225px 225px 350px 350px]-Fail Compositing CSS Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0) should be [200px 200px 300px 300px]-Fail Compositing CSS Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.25) should be [175px 175px 250px 250px]-Fail Compositing CSS Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.5) should be [150px 150px 200px 200px]-Fail Compositing CSS Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.75) should be [125px 125px 150px 150px]+Pass Compositing CSS Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (-0.25) should be [225px 225px 350px 350px]+Pass Compositing CSS Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0) should be [200px 200px 300px 300px]+Pass Compositing CSS Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.25) should be [175px 175px 250px 250px]+Pass Compositing CSS Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.5) should be [150px 150px 200px 200px]+Pass Compositing CSS Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.75) should be [125px 125px 150px 150px]Pass Compositing CSS Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (1) should be [100px]-Fail Compositing CSS Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (1.25) should be [75px 75px 50px 50px]-Fail Compositing Web Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (-0.25) should be [225px 225px 350px 350px]-Fail Compositing Web Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0) should be [200px 200px 300px 300px]-Fail Compositing Web Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.25) should be [175px 175px 250px 250px]-Fail Compositing Web Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.5) should be [150px 150px 200px 200px]-Fail Compositing Web Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.75) should be [125px 125px 150px 150px]+Pass Compositing CSS Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (1.25) should be [75px 75px 50px 50px]+Pass Compositing Web Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (-0.25) should be [225px 225px 350px 350px]+Pass Compositing Web Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0) should be [200px 200px 300px 300px]+Pass Compositing Web Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.25) should be [175px 175px 250px 250px]+Pass Compositing Web Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.5) should be [150px 150px 200px 200px]+Pass Compositing Web Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.75) should be [125px 125px 150px 150px]Pass Compositing Web Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (1) should be [100px]-Fail Compositing Web Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (1.25) should be [75px 75px 50px 50px]+Pass Compositing Web Animations: property <border-image-outset> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (1.25) should be [75px 75px 50px 50px]Pass Compositing CSS Animations: property <border-image-outset> underlying [10 20px] from replace [100 100px] to add [190 180px] at (-0.25) should be [75 75px]Pass Compositing CSS Animations: property <border-image-outset> underlying [10 20px] from replace [100 100px] to add [190 180px] at (0) should be [100 100px]Pass Compositing CSS Animations: property <border-image-outset> underlying [10 20px] from replace [100 100px] to add [190 180px] at (0.25) should be [125 125px]@@ -74,20 +73,20 @@ Pass Compositing Web Animations: property <border-image-outset> underlying [10 2Pass Compositing Web Animations: property <border-image-outset> underlying [10 20px] from replace [100 100px] to add [190 180px] at (0.75) should be [175 175px]Pass Compositing Web Animations: property <border-image-outset> underlying [10 20px] from replace [100 100px] to add [190 180px] at (1) should be [200 200px]Pass Compositing Web Animations: property <border-image-outset> underlying [10 20px] from replace [100 100px] to add [190 180px] at (1.25) should be [225 225px]-Fail Compositing CSS Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (-0.25) should be [125px 125]+Pass Compositing CSS Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (-0.25) should be [125px 125]Pass Compositing CSS Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0) should be [100px 100]-Fail Compositing CSS Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.25) should be [75px 75]-Fail Compositing CSS Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.5) should be [50px 50]-Fail Compositing CSS Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.75) should be [25px 25]-Fail Compositing CSS Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (1) should be [0px 0]-Fail Compositing CSS Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (1.25) should be [0px 0]-Fail Compositing Web Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (-0.25) should be [125px 125]+Pass Compositing CSS Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.25) should be [75px 75]+Pass Compositing CSS Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.5) should be [50px 50]+Pass Compositing CSS Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.75) should be [25px 25]+Pass Compositing CSS Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (1) should be [0px 0]+Pass Compositing CSS Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (1.25) should be [0px 0]+Pass Compositing Web Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (-0.25) should be [125px 125]Pass Compositing Web Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0) should be [100px 100]-Fail Compositing Web Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.25) should be [75px 75]-Fail Compositing Web Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.5) should be [50px 50]-Fail Compositing Web Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.75) should be [25px 25]-Fail Compositing Web Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (1) should be [0px 0]-Fail Compositing Web Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (1.25) should be [0px 0]+Pass Compositing Web Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.25) should be [75px 75]+Pass Compositing Web Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.5) should be [50px 50]+Pass Compositing Web Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.75) should be [25px 25]+Pass Compositing Web Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (1) should be [0px 0]+Pass Compositing Web Animations: property <border-image-outset> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (1.25) should be [0px 0]Pass Compositing CSS Animations: property <border-image-outset> underlying [10 20] from add [100px 150px] to add [200px 250px] at (-0.25) should be [75px 125px]Pass Compositing CSS Animations: property <border-image-outset> underlying [10 20] from add [100px 150px] to add [200px 250px] at (0) should be [100px 150px]Pass Compositing CSS Animations: property <border-image-outset> underlying [10 20] from add [100px 150px] to add [200px 250px] at (0.25) should be [125px 175px]diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-backgrounds/animations/border-image-width-composition.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-backgrounds/animations/border-image-width-composition.txtindex 6dce1e240aa..90cc4fa1658 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-backgrounds/animations/border-image-width-composition.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-backgrounds/animations/border-image-width-composition.txt@@ -2,8 +2,7 @@ Harness status: OKFound 112 tests-74 Pass-38 Fail+112 PassPass Compositing CSS Animations: property <border-image-width> underlying [1 2 3 4] from add [1 2 3 4] to add [101 102 103 104] at (-0.25) should be [0]Pass Compositing CSS Animations: property <border-image-width> underlying [1 2 3 4] from add [1 2 3 4] to add [101 102 103 104] at (0) should be [2 4 6 8]Pass Compositing CSS Animations: property <border-image-width> underlying [1 2 3 4] from add [1 2 3 4] to add [101 102 103 104] at (0.25) should be [27 29 31 33]@@ -18,20 +17,20 @@ Pass Compositing Web Animations: property <border-image-width> underlying [1 2 3Pass Compositing Web Animations: property <border-image-width> underlying [1 2 3 4] from add [1 2 3 4] to add [101 102 103 104] at (0.75) should be [77 79 81 83]Pass Compositing Web Animations: property <border-image-width> underlying [1 2 3 4] from add [1 2 3 4] to add [101 102 103 104] at (1) should be [102 104 106 108]Pass Compositing Web Animations: property <border-image-width> underlying [1 2 3 4] from add [1 2 3 4] to add [101 102 103 104] at (1.25) should be [127 129 131 133]-Fail Compositing CSS Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (-0.25) should be [175 250 300 450]-Fail Compositing CSS Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0) should be [200 300 400 500]-Fail Compositing CSS Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.25) should be [225 350 500 550]-Fail Compositing CSS Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.5) should be [250 400 600 600]-Fail Compositing CSS Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.75) should be [275 450 700 650]-Fail Compositing CSS Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (1) should be [300 500 800 700]-Fail Compositing CSS Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (1.25) should be [325 550 900 750]-Fail Compositing Web Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (-0.25) should be [175 250 300 450]-Fail Compositing Web Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0) should be [200 300 400 500]-Fail Compositing Web Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.25) should be [225 350 500 550]-Fail Compositing Web Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.5) should be [250 400 600 600]-Fail Compositing Web Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.75) should be [275 450 700 650]-Fail Compositing Web Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (1) should be [300 500 800 700]-Fail Compositing Web Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (1.25) should be [325 550 900 750]+Pass Compositing CSS Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (-0.25) should be [175 250 300 450]+Pass Compositing CSS Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0) should be [200 300 400 500]+Pass Compositing CSS Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.25) should be [225 350 500 550]+Pass Compositing CSS Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.5) should be [250 400 600 600]+Pass Compositing CSS Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.75) should be [275 450 700 650]+Pass Compositing CSS Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (1) should be [300 500 800 700]+Pass Compositing CSS Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (1.25) should be [325 550 900 750]+Pass Compositing Web Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (-0.25) should be [175 250 300 450]+Pass Compositing Web Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0) should be [200 300 400 500]+Pass Compositing Web Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.25) should be [225 350 500 550]+Pass Compositing Web Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.5) should be [250 400 600 600]+Pass Compositing Web Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (0.75) should be [275 450 700 650]+Pass Compositing Web Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (1) should be [300 500 800 700]+Pass Compositing Web Animations: property <border-image-width> underlying [100 200 300 400] from add [100] to add [200 300 500] at (1.25) should be [325 550 900 750]Pass Compositing CSS Animations: property <border-image-width> underlying [1 2 3px 4%] from add [1 2 3px 4%] to add [101 102 103px 104%] at (-0.25) should be [0 0 0px 0%]Pass Compositing CSS Animations: property <border-image-width> underlying [1 2 3px 4%] from add [1 2 3px 4%] to add [101 102 103px 104%] at (0) should be [2 4 6px 8%]Pass Compositing CSS Animations: property <border-image-width> underlying [1 2 3px 4%] from add [1 2 3px 4%] to add [101 102 103px 104%] at (0.25) should be [27 29 31px 33%]@@ -46,20 +45,20 @@ Pass Compositing Web Animations: property <border-image-width> underlying [1 2 3Pass Compositing Web Animations: property <border-image-width> underlying [1 2 3px 4%] from add [1 2 3px 4%] to add [101 102 103px 104%] at (0.75) should be [77 79 81px 83%]Pass Compositing Web Animations: property <border-image-width> underlying [1 2 3px 4%] from add [1 2 3px 4%] to add [101 102 103px 104%] at (1) should be [102 104 106px 108%]Pass Compositing Web Animations: property <border-image-width> underlying [1 2 3px 4%] from add [1 2 3px 4%] to add [101 102 103px 104%] at (1.25) should be [127 129 131px 133%]-Fail Compositing CSS Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (-0.25) should be [225px 225px 350px 350px]-Fail Compositing CSS Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0) should be [200px 200px 300px 300px]-Fail Compositing CSS Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.25) should be [175px 175px 250px 250px]-Fail Compositing CSS Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.5) should be [150px 150px 200px 200px]-Fail Compositing CSS Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.75) should be [125px 125px 150px 150px]+Pass Compositing CSS Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (-0.25) should be [225px 225px 350px 350px]+Pass Compositing CSS Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0) should be [200px 200px 300px 300px]+Pass Compositing CSS Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.25) should be [175px 175px 250px 250px]+Pass Compositing CSS Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.5) should be [150px 150px 200px 200px]+Pass Compositing CSS Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.75) should be [125px 125px 150px 150px]Pass Compositing CSS Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (1) should be [100px]-Fail Compositing CSS Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (1.25) should be [75px 75px 50px 50px]-Fail Compositing Web Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (-0.25) should be [225px 225px 350px 350px]-Fail Compositing Web Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0) should be [200px 200px 300px 300px]-Fail Compositing Web Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.25) should be [175px 175px 250px 250px]-Fail Compositing Web Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.5) should be [150px 150px 200px 200px]-Fail Compositing Web Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.75) should be [125px 125px 150px 150px]+Pass Compositing CSS Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (1.25) should be [75px 75px 50px 50px]+Pass Compositing Web Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (-0.25) should be [225px 225px 350px 350px]+Pass Compositing Web Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0) should be [200px 200px 300px 300px]+Pass Compositing Web Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.25) should be [175px 175px 250px 250px]+Pass Compositing Web Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.5) should be [150px 150px 200px 200px]+Pass Compositing Web Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (0.75) should be [125px 125px 150px 150px]Pass Compositing Web Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (1) should be [100px]-Fail Compositing Web Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (1.25) should be [75px 75px 50px 50px]+Pass Compositing Web Animations: property <border-image-width> underlying [10px 20px] from add [190px 180px 290px 280px] to add [90px 80px] at (1.25) should be [75px 75px 50px 50px]Pass Compositing CSS Animations: property <border-image-width> underlying [10 20px] from replace [100 100px] to add [190 180px] at (-0.25) should be [75 75px]Pass Compositing CSS Animations: property <border-image-width> underlying [10 20px] from replace [100 100px] to add [190 180px] at (0) should be [100 100px]Pass Compositing CSS Animations: property <border-image-width> underlying [10 20px] from replace [100 100px] to add [190 180px] at (0.25) should be [125 125px]@@ -74,20 +73,20 @@ Pass Compositing Web Animations: property <border-image-width> underlying [10 20Pass Compositing Web Animations: property <border-image-width> underlying [10 20px] from replace [100 100px] to add [190 180px] at (0.75) should be [175 175px]Pass Compositing Web Animations: property <border-image-width> underlying [10 20px] from replace [100 100px] to add [190 180px] at (1) should be [200 200px]Pass Compositing Web Animations: property <border-image-width> underlying [10 20px] from replace [100 100px] to add [190 180px] at (1.25) should be [225 225px]-Fail Compositing CSS Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (-0.25) should be [125px 125]+Pass Compositing CSS Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (-0.25) should be [125px 125]Pass Compositing CSS Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0) should be [100px 100]-Fail Compositing CSS Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.25) should be [75px 75]-Fail Compositing CSS Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.5) should be [50px 50]-Fail Compositing CSS Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.75) should be [25px 25]-Fail Compositing CSS Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (1) should be [0px 0]-Fail Compositing CSS Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (1.25) should be [0px 0]-Fail Compositing Web Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (-0.25) should be [125px 125]+Pass Compositing CSS Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.25) should be [75px 75]+Pass Compositing CSS Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.5) should be [50px 50]+Pass Compositing CSS Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.75) should be [25px 25]+Pass Compositing CSS Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (1) should be [0px 0]+Pass Compositing CSS Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (1.25) should be [0px 0]+Pass Compositing Web Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (-0.25) should be [125px 125]Pass Compositing Web Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0) should be [100px 100]-Fail Compositing Web Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.25) should be [75px 75]-Fail Compositing Web Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.5) should be [50px 50]-Fail Compositing Web Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.75) should be [25px 25]-Fail Compositing Web Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (1) should be [0px 0]-Fail Compositing Web Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (1.25) should be [0px 0]+Pass Compositing Web Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.25) should be [75px 75]+Pass Compositing Web Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.5) should be [50px 50]+Pass Compositing Web Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (0.75) should be [25px 25]+Pass Compositing Web Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (1) should be [0px 0]+Pass Compositing Web Animations: property <border-image-width> underlying [10px 20] from add [90px 80] to replace [0px 0 0px 0] at (1.25) should be [0px 0]Pass Compositing CSS Animations: property <border-image-width> underlying [10 20] from add [100px 150px] to add [200px 250px] at (-0.25) should be [75px 125px]Pass Compositing CSS Animations: property <border-image-width> underlying [10 20] from add [100px 150px] to add [200px 250px] at (0) should be [100px 150px]Pass Compositing CSS Animations: property <border-image-width> underlying [10 20] from add [100px 150px] to add [200px 250px] at (0.25) should be [125px 175px]