Truly independent web browser
LibWeb: Support geometry boxes in clip-path
Andreas Kling709906134451
diff --git a/Libraries/LibWeb/CSS/Properties.json b/Libraries/LibWeb/CSS/Properties.jsonindex 6bcaf8252ea..bf7f6436694 100644--- a/Libraries/LibWeb/CSS/Properties.json+++ b/Libraries/LibWeb/CSS/Properties.json@@ -1579,7 +1579,6 @@"valid-identifiers": ["none"],- "__comment": "FIXME: This should be a <clip-source> | [ <basic-shape> || <geometry-box> ]","valid-types": ["basic-shape","url"diff --git a/Libraries/LibWeb/Rust/src/css/parser/positions_shapes_parser.rs b/Libraries/LibWeb/Rust/src/css/parser/positions_shapes_parser.rsindex ab39405c44e..a9a783cd026 100644--- a/Libraries/LibWeb/Rust/src/css/parser/positions_shapes_parser.rs+++ b/Libraries/LibWeb/Rust/src/css/parser/positions_shapes_parser.rs@@ -1340,6 +1340,54 @@ fn shape_box(value: &ComponentValue) -> Option<StyleValueData> {})}+// https://drafts.fxtf.org/css-masking-1/#typedef-geometry-box+// <geometry-box> = <shape-box> | fill-box | stroke-box | view-box+fn geometry_box(value: &ComponentValue) -> Option<StyleValueData> {+ keyword_value(+ value,+ &[+ keyword::CONTENT_BOX,+ keyword::PADDING_BOX,+ keyword::BORDER_BOX,+ keyword::MARGIN_BOX,+ keyword::FILL_BOX,+ keyword::STROKE_BOX,+ keyword::VIEW_BOX,+ ],+ )+}++// https://drafts.fxtf.org/css-masking-1/#the-clip-path+// [ <basic-shape> || <geometry-box> ]+fn parse_clip_path_shape(context: &ParseContext, property: u16, values: &[ComponentValue]) -> Option<StyleValueData> {+ let mut shape = None;+ let mut box_value = None;+ for value in values.iter().filter(|value| !value.is_whitespace()) {+ if value.function().is_some() {+ if shape.is_some() {+ return None;+ }+ shape = Some(parse_basic_shape(context, property, std::slice::from_ref(value))?);+ } else {+ if box_value.is_some() {+ return None;+ }+ box_value = Some(geometry_box(value)?);+ }+ }+ match (shape, box_value) {+ // NB: The border box is the reference box of a basic shape without one, so it is left out of the value.+ (Some(shape), Some(StyleValueData::Keyword { keyword })) if keyword == keyword::BORDER_BOX => Some(shape),+ (Some(shape), Some(box_value)) => Some(StyleValueData::ValueList {+ values: RetainedStyleValueDataList::from_retained_values(vec![retained(shape), retained(box_value)]),+ separator: 0,+ collapsible: false,+ }),+ (Some(value), None) | (None, Some(value)) => Some(value),+ (None, None) => None,+ }+}+// https://drafts.csswg.org/css-borders-4/#propdef-border-shape// none | [ <basic-shape> <geometry-box>? ]{1,2}fn parse_border_shape(context: &ParseContext, property: u16, values: &[ComponentValue]) -> Option<StyleValueData> {@@ -1349,25 +1397,8 @@ fn parse_border_shape(context: &ParseContext, property: u16, values: &[Component{return Some(none);}- // https://drafts.fxtf.org/css-masking-1/#typedef-geometry-box- let geometry_box = |value: &ComponentValue| {- let ident = value.ident()?;- [- "content-box",- "padding-box",- "border-box",- "margin-box",- "fill-box",- "stroke-box",- "view-box",- "half-border-box",- ]- .iter()- .any(|accepted| equals_ascii_case_insensitive(ident, accepted.as_bytes()))- .then(|| keyword_from_ascii_case_insensitive(ident))- .flatten()- .map(|keyword| StyleValueData::Keyword { keyword })- };+ let geometry_box =+ |value: &ComponentValue| geometry_box(value).or_else(|| keyword_value(value, &[keyword::HALF_BORDER_BOX]));let mut items = Vec::new();let mut shape_count = 0;let mut index = 0;@@ -2253,6 +2284,16 @@ pub(crate) fn parse_geometry_property(parse_offset_path(context, property, values)} else if property == property_id::OFFSET_ROTATE {parse_offset_rotate(context, property, values)+ } else if property == property_id::CLIP_PATH {+ let starts_shape_or_box = values.iter().find(|value| !value.is_whitespace()).is_some_and(|value| {+ value.function().is_some_and(|(name, _)| {+ !equals_ascii_case_insensitive(name, b"url") && !equals_ascii_case_insensitive(name, b"src")+ }) || geometry_box(value).is_some()+ });+ if !starts_shape_or_box {+ return ParseOutcome::NotHandled;+ }+ parse_clip_path_shape(context, property, values)} else if property == property_id::SHAPE_OUTSIDE {let is_shape_outside_value = values.iter().find(|value| !value.is_whitespace()).is_some_and(|value| {value.ident().is_some_and(|ident| {diff --git a/Libraries/LibWeb/Rust/src/css/style/style_invalidation.rs b/Libraries/LibWeb/Rust/src/css/style/style_invalidation.rsindex 4603c8e6bc6..3a40be6d522 100644--- a/Libraries/LibWeb/Rust/src/css/style/style_invalidation.rs+++ b/Libraries/LibWeb/Rust/src/css/style/style_invalidation.rs@@ -429,7 +429,12 @@ fn accumulated_visual_context_property_always_requires_repaint(property: u16) ->}fn clip_path_value_is_a_visual_context_frame(values: ComputedValuesView<'_>) -> bool {- matches!(values.mask().clip_path.data(), Some(StyleValueData::BasicShape { .. }))+ // NB: A basic shape, a geometry box, or both clip with a path, which a visual context frame holds.+ match values.mask().clip_path.data() {+ Some(StyleValueData::BasicShape { .. } | StyleValueData::ValueList { .. }) => true,+ Some(StyleValueData::Keyword { keyword }) => *keyword != crate::css::css_enums::keyword::NONE,+ _ => false,+ }}fn accumulated_visual_context_change_alters_hit_test_items(diff --git a/Libraries/LibWeb/Rust/src/painting/border_shape.rs b/Libraries/LibWeb/Rust/src/painting/border_shape.rsindex d8fa396c5b9..929df1d0295 100644--- a/Libraries/LibWeb/Rust/src/painting/border_shape.rs+++ b/Libraries/LibWeb/Rust/src/painting/border_shape.rs@@ -149,7 +149,7 @@ fn relevant_side_width(style: ComputedValuesView<'_>, edge: BorderEdge) -> CssPi/// FIXME: Inline boxes paint once per fragment, but this resolves against the whole element's border box, so a box/// broken across lines paints the whole shape in each fragment. The spec does not say how a border shape/// fragments yet.-fn reference_box(+pub(crate) fn reference_box(layout_arena: &impl PaintRead,slot: NodeSlotId,style: ComputedValuesView<'_>,diff --git a/Libraries/LibWeb/Rust/src/painting/style_queries.rs b/Libraries/LibWeb/Rust/src/painting/style_queries.rsindex c4b0617eae3..9ae427a1808 100644--- a/Libraries/LibWeb/Rust/src/painting/style_queries.rs+++ b/Libraries/LibWeb/Rust/src/painting/style_queries.rs@@ -163,8 +163,12 @@ pub(crate) fn mask_layers_have_image(mask: &MaskValues) -> bool {}pub(crate) fn clip_path_has_value(mask: &MaskValues) -> bool {- handle_value(&mask.clip_path)- .is_some_and(|value| matches!(value, StyleValueData::Url { .. } | StyleValueData::BasicShape { .. }))+ // NB: Besides none, clip-path is a <clip-source>, or a <basic-shape>, a <geometry-box>, or both.+ handle_value(&mask.clip_path).is_some_and(|value| match value {+ StyleValueData::Url { .. } | StyleValueData::BasicShape { .. } | StyleValueData::ValueList { .. } => true,+ StyleValueData::Keyword { keyword } => *keyword != crate::css::css_enums::keyword::NONE,+ _ => false,+ })}fn view_transition_name_has_value(style: ComputedValuesView<'_>) -> bool {diff --git a/Libraries/LibWeb/Rust/src/painting/visual_context/basic_shapes.rs b/Libraries/LibWeb/Rust/src/painting/visual_context/basic_shapes.rsindex 4a9ddd07dc3..4c5d09fb398 100644--- a/Libraries/LibWeb/Rust/src/painting/visual_context/basic_shapes.rs+++ b/Libraries/LibWeb/Rust/src/painting/visual_context/basic_shapes.rs@@ -5,11 +5,12 @@*/use crate::css::computed_value_views::LengthPercentageRef;+use crate::css::css_enums::keyword;use crate::css::css_pixels::CssPixels;use crate::css::css_pixels::{CssPixelPoint, CssPixelRect, CssPixelSize};use crate::css::style_value::{BasicShapeData, RetainedStyleValueData, StyleValueData};use crate::layout::node_data::NodeSlotId;-use crate::painting::border_radii::normalize_border_radii_data;+use crate::painting::border_radii::{BorderRadii, normalize_border_radii_data};use crate::painting::display_list::device_pixels::DevicePixelConverter;use crate::painting::paint_read::PaintRead;use crate::painting::{paintable_geometry, style_queries};@@ -311,6 +312,16 @@ fn inset_to_path(],);+ rounded_rect_path(top_edge, right_edge, bottom_edge, left_edge, radii)+}++fn rounded_rect_path(+ top_edge: f32,+ right_edge: f32,+ bottom_edge: f32,+ left_edge: f32,+ radii: BorderRadii,+) -> OwnedPath {if !radii.has_any_radius() {return path_from_resolved_rect(top_edge, right_edge, bottom_edge, left_edge);}@@ -592,7 +603,15 @@ pub(crate) fn basic_shape_device_path(}_ => WindingRule::Nonzero,};- let translated_path = shape_path.copy_transformed([+ (+ device_path_from_local_path(shape_path, reference_box, pixel_ratio),+ resolved_fill_rule,+ )+}++/// The device-space path of a path whose coordinates are relative to the origin of `reference_box`.+fn device_path_from_local_path(path: OwnedPath, reference_box: CssPixelRect, pixel_ratio: f64) -> OwnedPath {+ let translated_path = path.copy_transformed([1.0,0.0,0.0,@@ -601,9 +620,125 @@ pub(crate) fn basic_shape_device_path(reference_box.y.to_float(),]);let scale = pixel_ratio as f32;- (- translated_path.copy_transformed([scale, 0.0, 0.0, scale, 0.0, 0.0]),- resolved_fill_rule,+ translated_path.copy_transformed([scale, 0.0, 0.0, scale, 0.0, 0.0])+}++// https://drafts.fxtf.org/css-masking-1/#typedef-geometry-box+// For elements with associated CSS layout box, the used value for fill-box is content-box and for stroke-box and+// view-box is border-box.+// FIXME: For SVG elements without associated CSS layout box, the used value for content-box and padding-box is+// fill-box and for border-box and margin-box is stroke-box.+fn used_geometry_box(geometry_box: u16) -> u16 {+ match geometry_box {+ keyword::FILL_BOX => keyword::CONTENT_BOX,+ keyword::STROKE_BOX | keyword::VIEW_BOX => keyword::BORDER_BOX,+ other => other,+ }+}++// https://drafts.csswg.org/css-shapes-1/#valdef-shape-box-margin-box+// The corner radii of this shape are determined by the corresponding border-radius and margin values. If the ratio of+// border-radius/margin is 1 or more, or margin is negative or zero, then the margin box corner radius is+// max(border-radius + margin, 0). The margin box's corners are outset-adjusted given the element's border box,+// border-radius, and the margin.+fn margin_box_border_radii(+ border_box: CssPixelRect,+ radii: BorderRadii,+ [top, right, bottom, left]: [CssPixels; 4],+) -> BorderRadii {+ // https://drafts.csswg.org/css-borders-4/#adjusted-radius-dimension+ // To compute the adjusted radius dimension given numbers coverage, radius, and outset:+ let adjusted_radius_dimension = |coverage: f32, radius: f32, outset: f32| {+ // NB: This is the margin box rule for a margin that is negative or zero.+ if outset <= 0.0 {+ return (radius + outset).max(0.0);+ }+ // 1. If radius is greater than outset, or if coverage is greater than 1, then return radius + outset.+ if radius > outset || coverage > 1.0 {+ return radius + outset;+ }+ // 2. Let ratio be radius / outset.+ let ratio = radius / outset;+ // 3. Return radius + outset * (1 - (1 - ratio)^3 * (1 - coverage^3)).+ radius + outset * (1.0 - (1.0 - ratio).powi(3) * (1.0 - coverage.powi(3)))+ };+ // https://drafts.csswg.org/css-borders-4/#outset-adjusted-border-radius+ // To compute the outset-adjusted border radius given the 2-dimensional size's edge, radius, and outset:+ let (edge_width, edge_height) = (border_box.width.to_float(), border_box.height.to_float());+ let outset_adjusted_border_radius =+ |radius_width: CssPixels, radius_height: CssPixels, outset_width: CssPixels, outset_height: CssPixels| {+ let (radius_width, radius_height) = (radius_width.to_float(), radius_height.to_float());+ // 1. Let coverage be 2 * min(radius's width / edge's width, radius's height / edge's height).+ let coverage = 2.0 * (radius_width / edge_width).min(radius_height / edge_height);+ // NB: An empty border box has no corner to cover.+ let coverage = if coverage.is_nan() { 0.0 } else { coverage };+ // 2. Let adjustedRadiusWidth be the adjusted radius dimension given coverage, radius's width, and outset's+ // width.+ let adjusted_radius_width = adjusted_radius_dimension(coverage, radius_width, outset_width.to_float());+ // 3. Let adjustedRadiusHeight be the adjusted radius dimension given coverage, radius's height, and outset's+ // height.+ let adjusted_radius_height = adjusted_radius_dimension(coverage, radius_height, outset_height.to_float());+ // 4. Return (adjustedRadiusWidth, adjustedRadiusHeight).+ [+ CssPixels::nearest_value_for_f32(adjusted_radius_width),+ CssPixels::nearest_value_for_f32(adjusted_radius_height),+ ]+ };+ let [tl_h, tl_v, tr_h, tr_v, br_h, br_v, bl_h, bl_v] = radii.values;+ let [tl_h, tl_v] = outset_adjusted_border_radius(tl_h, tl_v, left, top);+ let [tr_h, tr_v] = outset_adjusted_border_radius(tr_h, tr_v, right, top);+ let [br_h, br_v] = outset_adjusted_border_radius(br_h, br_v, right, bottom);+ let [bl_h, bl_v] = outset_adjusted_border_radius(bl_h, bl_v, left, bottom);+ BorderRadii {+ values: [tl_h, tl_v, tr_h, tr_v, br_h, br_v, bl_h, bl_v],+ }+}++// https://drafts.fxtf.org/css-masking-1/#the-clip-path+// If specified by itself, uses the edges of the specified box, including any corner shaping (e.g. defined by+// border-radius), as clipping path.+fn geometry_box_path(+ layout_arena: &impl PaintRead,+ slot: NodeSlotId,+ style: crate::css::computed_value_views::ComputedValuesView<'_>,+ geometry_box: u16,+ reference_box: CssPixelRect,+) -> OwnedPath {+ let border = [+ style.border_top_width(),+ style.border_right_width(),+ style.border_bottom_width(),+ style.border_left_width(),+ ];+ let radii = super::node_values::border_radii_data(style, layout_arena, slot);+ let radii = match geometry_box {+ keyword::PADDING_BOX => radii.shrunken(border[0], border[1], border[2], border[3]),+ keyword::CONTENT_BOX => {+ let padding = paintable_geometry::committed_padding(layout_arena, slot);+ radii.shrunken(+ border[0] + padding.top,+ border[1] + padding.right,+ border[2] + padding.bottom,+ border[3] + padding.left,+ )+ }+ keyword::MARGIN_BOX => {+ let margin = paintable_geometry::committed_margin(layout_arena, slot);+ let border_box = paintable_geometry::absolute_border_box_rect(layout_arena, slot);+ margin_box_border_radii(+ border_box,+ radii,+ [margin.top, margin.right, margin.bottom, margin.left],+ )+ }+ _ => radii,+ };+ rounded_rect_path(+ 0.0,+ reference_box.width.to_float(),+ reference_box.height.to_float(),+ 0.0,+ radii,)}@@ -615,10 +750,39 @@ pub(crate) fn compute_basic_shape_clip_path_data(let node = slot;let style = layout_arena.node_style_if_live(node)?;let clip_path = style_queries::handle_value(&style.mask().clip_path)?;- // FIXME: Support other geometry boxes. See: https://drafts.fxtf.org/css-masking/#typedef-geometry-box- let masking_area = paintable_geometry::absolute_border_box_rect(layout_arena, slot);- let (device_path, resolved_fill_rule) =- basic_shape_device_path(clip_path.basic_shape()?, masking_area, pixel_ratio);+ // [ <basic-shape> || <geometry-box> ], as a lone shape, a lone box, or a shape followed by its box.+ let (shape, geometry_box) = match clip_path {+ StyleValueData::BasicShape { shape } => (Some(shape.as_ref()), None),+ StyleValueData::Keyword { keyword } if *keyword != keyword::NONE => (None, Some(*keyword)),+ StyleValueData::ValueList { values, .. } => match values.as_slice() {+ [shape, geometry_box] => match geometry_box.data() {+ StyleValueData::Keyword { keyword } => (Some(shape.data().basic_shape()?), Some(*keyword)),+ _ => return None,+ },+ _ => return None,+ },+ _ => return None,+ };+ // If no reference box is specified, the border-box will be used as reference box.+ let geometry_box = used_geometry_box(geometry_box.unwrap_or(keyword::BORDER_BOX));+ let masking_area = crate::painting::border_shape::reference_box(+ layout_arena,+ slot,+ style,+ Some(geometry_box),+ keyword::BORDER_BOX,+ );+ let (device_path, resolved_fill_rule) = match shape {+ Some(shape) => basic_shape_device_path(shape, masking_area, pixel_ratio),+ None => (+ device_path_from_local_path(+ geometry_box_path(layout_arena, slot, style, geometry_box, masking_area),+ masking_area,+ pixel_ratio,+ ),+ WindingRule::Nonzero,+ ),+ };let converter = DevicePixelConverter::new(pixel_ratio);let device_bounding_rect = converter.rounded_device_rect(masking_area);Some((device_path, device_bounding_rect, resolved_fill_rule))diff --git a/Tests/LibWeb/Ref/expected/clip-path-geometry-box-creates-stacking-context-ref.html b/Tests/LibWeb/Ref/expected/clip-path-geometry-box-creates-stacking-context-ref.htmlnew file mode 100644index 00000000000..ac0313d95ae--- /dev/null+++ b/Tests/LibWeb/Ref/expected/clip-path-geometry-box-creates-stacking-context-ref.html@@ -0,0 +1,11 @@+<!DOCTYPE html>+<style>+ div {+ width: 100px;+ height: 100px;+ margin-bottom: 10px;+ background: green;+ }+</style>+<div></div>+<div></div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-1-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-1-ref.htmlnew file mode 100644index 00000000000..add81e8dfeb--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-1-ref.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<html>+ <head>+ <meta charset="utf-8">+ <title>CSS Masking: clip-path: clip path geometry box</title>+ <link rel="author" title="CJ Ku" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org">+ </head>+ <body>+ <svg width="200" height="200" style="position: absolute; left: 0px; top: 0px;">+ <circle cx="100" cy="100" r="50" fill="blue"/>+ </svg>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-2-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-2-ref.htmlnew file mode 100644index 00000000000..b9ee9ab63b0--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-2-ref.html@@ -0,0 +1,14 @@+<!DOCTYPE html>+<html>+ <head>+ <meta charset="utf-8">+ <title>CSS Masking: clip-path: clip path geometry box</title>+ <link rel="author" title="CJ Ku" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org">+ </head>+ <body>+ <svg width="200" height="200" style="position: absolute; left: 0px; top: 0px;">+ <polygon points="100,50 150,100 150,150 50,150 50,100" fill="blue"/>+ </svg>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-masking/clip-path/reference/clip-path-reference-box-001-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-masking/clip-path/reference/clip-path-reference-box-001-ref.htmlnew file mode 100644index 00000000000..f718ea6abfb--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-masking/clip-path/reference/clip-path-reference-box-001-ref.html@@ -0,0 +1,2 @@+<!DOCTYPE html>+<div style="width: 100px; height: 100px; background-color: green"></div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-masking/clip-path/reference/clip-path-reference-box-002-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-masking/clip-path/reference/clip-path-reference-box-002-ref.htmlnew file mode 100644index 00000000000..f718ea6abfb--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-masking/clip-path/reference/clip-path-reference-box-002-ref.html@@ -0,0 +1,2 @@+<!DOCTYPE html>+<div style="width: 100px; height: 100px; background-color: green"></div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-masking/clip-path/reference/clip-path-reference-box-003-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-masking/clip-path/reference/clip-path-reference-box-003-ref.htmlnew file mode 100644index 00000000000..f718ea6abfb--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-masking/clip-path/reference/clip-path-reference-box-003-ref.html@@ -0,0 +1,2 @@+<!DOCTYPE html>+<div style="width: 100px; height: 100px; background-color: green"></div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-masking/clip-path/reference/green-circle-100x100.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-masking/clip-path/reference/green-circle-100x100.htmlnew file mode 100644index 00000000000..e1bd7e5f2f2--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-masking/clip-path/reference/green-circle-100x100.html@@ -0,0 +1,2 @@+<!DOCTYPE html>+<div style="width: 100px; height: 100px; background-color: green; border-radius: 50px;"></div>diff --git a/Tests/LibWeb/Ref/input/clip-path-geometry-box-creates-stacking-context.html b/Tests/LibWeb/Ref/input/clip-path-geometry-box-creates-stacking-context.htmlnew file mode 100644index 00000000000..a181336244a--- /dev/null+++ b/Tests/LibWeb/Ref/input/clip-path-geometry-box-creates-stacking-context.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<link rel="match" href="../expected/clip-path-geometry-box-creates-stacking-context-ref.html" />+<style>+ .clipped {+ width: 100px;+ height: 100px;+ margin-bottom: 10px;+ background: red;+ }+ .child {+ position: relative;+ z-index: -1;+ width: 100px;+ height: 100px;+ background: green;+ }+</style>+<div class="clipped" style="clip-path: border-box"><div class="child"></div></div>+<div class="clipped" style="clip-path: inset(0) padding-box"><div class="child"></div></div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-borderBox-1a.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-borderBox-1a.htmlnew file mode 100644index 00000000000..f5668ae83e7--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-borderBox-1a.html@@ -0,0 +1,29 @@+<!DOCTYPE html>+<html>+ <head>+ <meta charset="utf-8">+ <title>CSS Masking: clip-path: clip path border-box</title>+ <link rel="author" title="CJ Ku" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org">+ <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">+ <link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-1-ref.html">+ <meta name="fuzzy" content="maxDifference=0-100; totalPixels=0-400">+ <meta name="assert" content="Test checks whether clip-path border-box works correctly or not. This test is for clip-path applied to an HTML element.">+ <style>+ div {+ position: absolute;+ left: 50px;+ top: 50px;+ background-color: blue;+ width: 30px;+ height: 30px;+ padding: 10px;+ border: solid blue 25px;+ clip-path: circle(farthest-side) border-box;+ }+ </style>+ </head>+ <body>+ <div></div>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-borderBox-1b.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-borderBox-1b.htmlnew file mode 100644index 00000000000..9d236d6a857--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-borderBox-1b.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<html>+ <head>+ <meta charset="utf-8">+ <title>CSS Masking: clip-path: clip path border-box</title>+ <link rel="author" title="CJ Ku" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org">+ <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">+ <link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-1-ref.html">+ <meta name="assert" content="Test checks whether clip-path border-box works correctly or not. This test is for clip-path applied to an SVG element.">+ <meta name="fuzzy" content="maxDifference=0-70; totalPixels=0-500">+ </head>+ <body>+ <svg width="200" height="200" style="position: absolute; left: 15px; top: 10px;">+ <rect x="35" y="40" width="100" height="100" fill="blue"+ clip-path="circle(50%) border-box"/>+ </svg>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-borderBox-1c.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-borderBox-1c.htmlnew file mode 100644index 00000000000..6d7a40d1b82--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-borderBox-1c.html@@ -0,0 +1,31 @@+<!DOCTYPE html>+<html>+ <head>+ <meta charset="utf-8">+ <title>CSS Masking: clip-path: clip path border-box</title>+ <link rel="author" title="CJ Ku" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org">+ <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">+ <link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-1-ref.html">+ <meta name="fuzzy" content="maxDifference=0-102; totalPixels=0-750">+ <meta name="assert" content="Test checks whether clip-path border-box works correctly or not. This test is for clip-path applied to an SVG SVG element.">+ <style>+ svg {+ position: absolute;+ left: 50px;+ top: 50px;+ background-color: blue;+ width: 30px;+ height: 30px;+ padding: 10px;+ border: solid blue 25px;+ clip-path: circle(farthest-side) border-box;+ }+ </style>+ </head>+ <body>+ <svg width="200" height="200">+ <rect x="0" y="0" width="200" height="200" fill="blue"/>+ </svg>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-borderBox-1d.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-borderBox-1d.htmlnew file mode 100644index 00000000000..7fb981b1a86--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-borderBox-1d.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<title>CSS Masking: clip path with border-box</title>+<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">+<link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/reference/green-100x100.html">+<meta name="assert" content="Check that the 'clip-path' property supports border-box.">++<style>+ .clipped {+ width: 50px;+ height: 50px;+ background-color: green;+ clip-path: border-box;+ border: 25px solid green;+ /* This outline draws outside the border box and should be clipped. */+ outline: 8px solid red;+ }+</style>+<div class="clipped"></div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-borderBox-1e.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-borderBox-1e.htmlnew file mode 100644index 00000000000..c01b67072d1--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-borderBox-1e.html@@ -0,0 +1,21 @@+<!DOCTYPE html>+<title>CSS Masking: clip path with border-box and border-radius</title>+<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">+<link rel="help" href="https://drafts.csswg.org/css-shapes-1/#valdef-shape-box-border-box">+<link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/reference/green-circle-100x100.html">+<meta name="fuzzy" content="maxDifference=0-155; totalPixels=0-400">+<meta name="assert" content="Check that the 'clip-path' property supports border-box with border-radius.">++<style>+ .clipped {+ width: 50px;+ height: 50px;+ background-color: green;+ clip-path: border-box;+ border: 25px solid green;+ border-radius: 50px;+ /* This outline draws outside the border box and should be clipped. */+ outline: 8px solid red;+ }+</style>+<div class="clipped"></div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-contentBox-1a.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-contentBox-1a.htmlnew file mode 100644index 00000000000..9a2f2a6b286--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-contentBox-1a.html@@ -0,0 +1,28 @@+<!DOCTYPE html>+<html>+ <head>+ <meta charset="utf-8">+ <title>CSS Masking: clip-path: clip path content-box</title>+ <link rel="author" title="CJ Ku" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org">+ <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">+ <link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-1-ref.html">+ <meta name="assert" content="Test checks whether clip-path content-box works correctly or not. This test is for clip-path applied to an HTML element.">+ <meta name="fuzzy" content="maxDifference=0-62; totalPixels=0-420">+ <style>+ div {+ background-color: blue;+ position: absolute;+ left: 10px;+ top: 10px;+ width: 100px;+ height: 100px;+ padding: 40px;+ clip-path: circle(farthest-side) content-box;+ }+ </style>+ </head>+ <body>+ <div></div>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-contentBox-1b.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-contentBox-1b.htmlnew file mode 100644index 00000000000..fc30d00c371--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-contentBox-1b.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<html>+ <head>+ <meta charset="utf-8">+ <title>CSS Masking: clip-path: clip path content-box</title>+ <link rel="author" title="CJ Ku" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org">+ <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">+ <link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-1-ref.html">+ <meta name="assert" content="Test checks whether clip-path content-box works correctly or not. This test is for clip-path applied to an SVG element.">+ <meta name="fuzzy" content="maxDifference=0-62; totalPixels=0-420">+ </head>+ <body>+ <svg width="200" height="200" style="position: absolute; left: 0px; top: 0px;">+ <rect x="50" y="50" width="100" height="100" fill="blue"+ clip-path="circle(50%) content-box"/>+ </svg>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-contentBox-1c.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-contentBox-1c.htmlnew file mode 100644index 00000000000..f7ff163901d--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-contentBox-1c.html@@ -0,0 +1,29 @@+<!DOCTYPE html>+<html>+ <head>+ <meta charset="utf-8">+ <title>CSS Masking: clip-path: clip path content-box</title>+ <link rel="author" title="CJ Ku" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org">+ <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">+ <link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-1-ref.html">+ <meta name="fuzzy" content="maxDifference=0-52; totalPixels=0-376">+ <meta name="assert" content="Test checks whether clip-path content-box works correctly or not.">+ </head>+ <style>+ svg {+ position: absolute;+ left: 10px;+ top: 10px;+ width: 100px;+ height: 100px;+ padding: 40px;+ clip-path: circle(farthest-side) content-box;+ }+ </style>+ <body>+ <svg width="200" height="200">+ <rect x="0" y="0" width="200" height="200" fill="blue"/>+ </svg>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-contentBox-1d.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-contentBox-1d.htmlnew file mode 100644index 00000000000..f338ddf4f10--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-contentBox-1d.html@@ -0,0 +1,28 @@+<!DOCTYPE html>+<title>CSS Masking: clip path with content-box</title>+<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">+<link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/reference/green-100x100.html">+<meta name="assert" content="Check that the 'clip-path' property supports content-box.">++<style>+ body { margin: 0; }+ .clipped {+ display: inline-block;+ clip-path: content-box;+ /* This background draws in the padding and should be clipped. */+ background-color: red;+ padding: 4px;+ /* This border draws outside the content box and should be clipped. */+ border: 4px solid darkred;+ /* This outline draws outside the content box and should be clipped. */+ outline: 100px solid maroon;+ }+ .content {+ width: 100px;+ height: 100px;+ background: green;+ }+</style>+<div class="clipped">+ <div class="content"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-contentBox-1e.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-contentBox-1e.htmlnew file mode 100644index 00000000000..c01a0277896--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-contentBox-1e.html@@ -0,0 +1,31 @@+<!DOCTYPE html>+<title>CSS Masking: clip path with content-box and border-radius</title>+<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">+<link rel="help" href="https://drafts.csswg.org/css-shapes-1/#valdef-shape-box-content-box">+<link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/reference/green-circle-100x100.html">+<meta name="fuzzy" content="maxDifference=0-65; totalPixels=0-400">+<meta name="assert" content="Check that the 'clip-path' property supports content-box with border-radius.">++<style>+ body { margin: 0; }+ .clipped {+ display: inline-block;+ clip-path: content-box;+ /* This background draws in the padding and should be clipped. */+ background-color: red;+ padding: 4px;+ border-radius: 58px;+ /* This border draws outside the content box and should be clipped. */+ border: 4px solid darkred;+ /* This outline draws outside the content box and should be clipped. */+ outline: 100px solid maroon;+ }+ .content {+ width: 100px;+ height: 100px;+ background: green;+ }+</style>+<div class="clipped">+ <div class="content"></div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-fillBox-1a.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-fillBox-1a.htmlnew file mode 100644index 00000000000..942efeec42b--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-fillBox-1a.html@@ -0,0 +1,32 @@+<!DOCTYPE html>+<html>+ <head>+ <meta charset="utf-8">+ <title>CSS Masking: clip-path: clip path fill-box</title>+ <link rel="author" title="CJ Ku" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org">+ <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">+ <link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-1-ref.html">+ <meta name="fuzzy" content="maxDifference=0-79; totalPixels=0-392">+ <meta name="assert" content="Test checks whether clip-path fill-box works correctly or not. This test is for clip-path applied to an SVG SVG element.">+ <style>+ svg {+ position: absolute;+ left: 5px;+ top: 5px;+ background-color: blue;+ width: 100px;+ height: 100px;+ margin: 10px;+ padding: 10px;+ border: solid blue 25px;+ clip-path: circle(farthest-side) fill-box;+ }+ </style>+ </head>+ <body>+ <svg width="200" height="200">+ <rect x="0" y="0" width="200" height="200" fill="blue">+ </svg>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-fillBox-1b.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-fillBox-1b.htmlnew file mode 100644index 00000000000..ae5ea3d8991--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-fillBox-1b.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<html>+ <head>+ <meta charset="utf-8">+ <title>CSS Masking: clip-path: clip path fill-box</title>+ <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">+ <link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-1-ref.html">+ <meta name="fuzzy" content="maxDifference=0-52; totalPixels=0-376">+ <meta name="assert" content="Test checks whether clip-path fill-box works correctly or not. This test is for clip-path applied to an SVG foreign object element.">+ </head>+ <body>+ <svg width="200" height="200" style="position: absolute; left: 50px; top: 50px;">+ <foreignObject x="0" y="0" width="100" height="100" fill="blue" clip-path="circle(50%) fill-box">+ <div style="width: 100px; height: 100px; background: blue"></div>+ </foreignObject>+ </svg>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-2.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-2.htmlnew file mode 100644index 00000000000..7c664f8d7f4--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-2.html@@ -0,0 +1,28 @@+<!DOCTYPE html>+<html>+ <head>+ <meta charset="utf-8">+ <title>CSS Masking: clip-path: clip path margin-box</title>+ <link rel="author" title="CJ Ku" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org">+ <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">+ <link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-2-ref.html">+ <meta name="assert" content="Test checks whether clip-path margin-box works correctly or not.">+ <meta name="fuzzy" content="maxDifference=0-60; totalPixels=0-394">+ <style>+ div {+ position: absolute;+ left: 0px;+ top: 0px;+ background-color: blue;+ width: 100px;+ height: 100px;+ margin: 50px;+ clip-path: polygon(0% 75%, 50% 25%, 100% 75%) margin-box;+ }+ </style>+ </head>+ <body>+ <div></div>+ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-marginBox-1a.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-marginBox-1a.htmlnew file mode 100644index 00000000000..66d54d821ab--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-marginBox-1a.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<html>+ <head>+ <meta charset="utf-8">+ <title>CSS Masking: clip-path: clip path margin-box</title>+ <link rel="author" title="CJ Ku" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org">+ <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">+ <link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-1-ref.html">+ <meta name="assert" content="Test checks whether clip-path margin-box works correctly or not. This test is for clip-path applied to an SVG element.">+ <meta name="fuzzy" content="maxDifference=0-62; totalPixels=0-420">+ </head>+ <body>+ <svg width="200" height="200" style="position: absolute; left: 10px; top: 15px;">+ <rect x="40" y="35" width="100" height="100" fill="blue"+ clip-path="circle(50%) margin-box"/>+ </svg>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-marginBox-1b.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-marginBox-1b.htmlnew file mode 100644index 00000000000..a0775a536ec--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-marginBox-1b.html@@ -0,0 +1,20 @@+<!DOCTYPE html>+<title>CSS Masking: clip path with margin-box</title>+<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">+<link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/reference/green-100x100.html">+<meta name="assert" content="Check that the 'clip-path' property supports margin-box.">++<style>+ .clipped {+ width: 50px;+ height: 50px;+ background-color: green;+ clip-path: margin-box;+ /* This outline draws far outside the margin box and should be partially clipped. */+ outline: 200px solid green;+ margin: 25px;+ /* Disables margin collapsing. */+ float: left;+ }+</style>+<div class="clipped"></div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-marginBox-1c.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-marginBox-1c.htmlnew file mode 100644index 00000000000..8f730d9d823--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-marginBox-1c.html@@ -0,0 +1,23 @@+<!DOCTYPE html>+<title>CSS Masking: clip path with margin-box and border-radius</title>+<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">+<link rel="help" href="https://drafts.csswg.org/css-shapes-1/#valdef-shape-box-margin-box">+<link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/reference/green-circle-100x100.html">+<meta name="fuzzy" content="maxDifference=0-98; totalPixels=0-424">+<meta name="assert" content="Check that the 'clip-path' property supports margin-box with border-radius.">++<style>+ .clipped {+ width: 50px;+ height: 50px;+ background-color: green;+ clip-path: margin-box;+ border-radius: 50px;+ /* This outline draws far outside the margin box and should be partially clipped. */+ outline: 200px solid green;+ margin: 25px;+ /* Disables margin collapsing. */+ float: left;+ }+</style>+<div class="clipped"></div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-paddingBox-1a.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-paddingBox-1a.htmlnew file mode 100644index 00000000000..9f919d47b3d--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-paddingBox-1a.html@@ -0,0 +1,28 @@+<!DOCTYPE html>+<html>+ <head>+ <meta charset="utf-8">+ <title>CSS Masking: clip-path: clip path padding-box</title>+ <link rel="author" title="CJ Ku" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org">+ <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">+ <link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-1-ref.html">+ <meta name="assert" content="Test checks whether clip-path padding-box works correctly or not. This test is for clip-path applied to an HTML element.">+ <meta name="fuzzy" content="maxDifference=0-62; totalPixels=0-420">+ <style>+ div {+ position: absolute;+ left: 50px;+ top: 50px;+ background-color: blue;+ width: 50px;+ height: 50px;+ padding: 25px;+ clip-path: circle(farthest-side) padding-box;+ }+ </style>+ </head>+ <body>+ <div></div>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-paddingBox-1b.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-paddingBox-1b.htmlnew file mode 100644index 00000000000..33d0df7413c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-paddingBox-1b.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<html>+ <head>+ <meta charset="utf-8">+ <title>CSS Masking: clip-path: clip path padding-box</title>+ <link rel="author" title="CJ Ku" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org">+ <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">+ <link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-1-ref.html">+ <meta name="assert" content="Test checks whether clip-path padding-box works correctly or not. This test is for clip-path applied to an SVG element.">+ <meta name="fuzzy" content="maxDifference=0-62; totalPixels=0-420">+ </head>+ <body>+ <svg width="200" height="200" style="position: absolute; left: 0px; top: 0px;">+ <rect x="50" y="50" width="100" height="100" fill="blue"+ clip-path="circle(50%) padding-box"/>+ </svg>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-paddingBox-1c.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-paddingBox-1c.htmlnew file mode 100644index 00000000000..84b787ab6dc--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-paddingBox-1c.html@@ -0,0 +1,30 @@+<!DOCTYPE html>+<html>+ <head>+ <meta charset="utf-8">+ <title>CSS Masking: clip-path: clip path padding-box</title>+ <link rel="author" title="CJ Ku" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org">+ <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">+ <link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-1-ref.html">+ <meta name="fuzzy" content="maxDifference=0-68; totalPixels=0-376">+ <meta name="assert" content="Test checks whether clip-path padding-box works correctly or not. This test is for clip-path applied to an SVG SVG element.">+ <style>+ svg {+ position: absolute;+ left: 50px;+ top: 50px;+ background-color: blue;+ width: 50px;+ height: 50px;+ padding: 25px;+ clip-path: circle(farthest-side) padding-box;+ }+ </style>+ </head>+ <body>+ <svg width="200" height="200">+ <rect x="0" y="0" width="200" height="200" fill="blue"/>+ </svg>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-paddingBox-1d.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-paddingBox-1d.htmlnew file mode 100644index 00000000000..1e391dbb4bb--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-paddingBox-1d.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<title>CSS Masking: clip path with padding-box</title>+<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">+<link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/reference/green-100x100.html">+<meta name="assert" content="Check that the 'clip-path' property supports padding-box.">++<style>+ body { margin: 0; }+ .clipped {+ width: 100px;+ height: 100px;+ background-color: green;+ clip-path: padding-box;+ /* This border draws outside the padding box and should be clipped. */+ border: 8px solid red;+ }+</style>+<div class="clipped"></div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-paddingBox-1e.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-paddingBox-1e.htmlnew file mode 100644index 00000000000..12ccc3d8018--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-paddingBox-1e.html@@ -0,0 +1,21 @@+<!DOCTYPE html>+<title>CSS Masking: clip path with padding-box and border-radius</title>+<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">+<link rel="help" href="https://drafts.csswg.org/css-shapes-1/#valdef-shape-box-padding-box">+<link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/reference/green-circle-100x100.html">+<meta name="fuzzy" content="maxDifference=0-70; totalPixels=0-400">+<meta name="assert" content="Check that the 'clip-path' property supports padding-box with border-radius.">++<style>+ body { margin: 0; }+ .clipped {+ width: 100px;+ height: 100px;+ background-color: green;+ clip-path: padding-box;+ /* This border draws outside the padding box and should be clipped. */+ border: 8px solid red;+ border-radius: 58px;+ }+</style>+<div class="clipped"></div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-reference-box-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-reference-box-001.htmlnew file mode 100644index 00000000000..c5231cd0d5a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-reference-box-001.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<title>CSS Masking: clip path reference box with box-shadow</title>+<link rel="author" title="Fredrik Söderquist" href="mailto:[email protected]">+<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">+<link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#propdef-box-shadow">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=418484">+<link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/reference/clip-path-reference-box-001-ref.html">+<meta name="assert" content="Check that the 'clip-path' property uses the border box as the reference box.">++<style>+.clipped {+ width: 100px;+ height: 200px;+ background-color: green;+ clip-path: polygon(0% 0%,100% 0%,100% 50%,0% 50%);+ box-shadow: 100px 0px red;+}+</style>+<div class="clipped"></div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-reference-box-002.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-reference-box-002.htmlnew file mode 100644index 00000000000..eb83124bcb4--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-reference-box-002.html@@ -0,0 +1,19 @@+<!DOCTYPE html>+<title>CSS Masking: clip path with floated element</title>+<link rel="author" title="Fredrik Söderquist" href="mailto:[email protected]">+<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=418484">+<link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/reference/clip-path-reference-box-002-ref.html">+<meta name="assert" content="Check that the 'clip-path' property uses the border box as the reference box.">++<style>+.clipped {+ width: 100px;+ height: 200px;+ background-color: green;+ clip-path: polygon(0% 0%,100% 0%,100% 50%,0% 50%);+}+</style>+<div class="clipped">+ <div style="float:left; margin-left:-100px; margin-top:-100px;"> </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-reference-box-003.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-reference-box-003.htmlnew file mode 100644index 00000000000..7be27636b01--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-reference-box-003.html@@ -0,0 +1,26 @@+<!DOCTYPE html>+<title>CSS Masking: clip path reference box with transform</title>+<link rel="author" title="Fredrik Söderquist" href="mailto:[email protected]">+<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=418484">+<link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/reference/clip-path-reference-box-003-ref.html">+<meta name="assert" content="Check that the 'clip-path' property uses the border box as the reference box when using transform.">++<style>+.clipped {+ width: 100px;+ height: 200px;+ background-color: green;+ clip-path: polygon(0% 0%,100% 0%,100% 50%,0% 50%);+}+.abs {+ position: absolute;+ width: 200px;+ height: 200px;+}+</style>+<div class="abs">+ <div class="clipped" style="position: absolute; overflow: hidden">+ <div class="abs" style="transform: translate(0px, 100px); background-color: red;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-strokeBox-1a.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-strokeBox-1a.htmlnew file mode 100644index 00000000000..b1aa701f92e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-strokeBox-1a.html@@ -0,0 +1,32 @@+<!DOCTYPE html>+<html>+ <head>+ <meta charset="utf-8">+ <title>CSS Masking: clip-path: clip path stroke-box</title>+ <link rel="author" title="CJ Ku" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org">+ <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">+ <link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-1-ref.html">+ <meta name="fuzzy" content="maxDifference=0-102; totalPixels=0-750">+ <meta name="assert" content="Test checks whether clip-path stroke-box works correctly or not. This test is for clip-path applied to an SVG SVG element.">+ <style>+ svg {+ position: absolute;+ left: 40px;+ top: 40px;+ background-color: blue;+ width: 30px;+ height: 30px;+ margin: 10px;+ padding: 10px;+ border: solid blue 25px;+ clip-path: circle(farthest-side) stroke-box;+ }+ </style>+ </head>+ <body>+ <svg width="200" height="200">+ <rect x="0" y="0" width="200" height="200" fill="blue"/>+ </svg>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-strokeBox-1b.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-strokeBox-1b.htmlnew file mode 100644index 00000000000..82c81935031--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-strokeBox-1b.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<html>+ <head>+ <meta charset="utf-8">+ <title>CSS Masking: clip-path: clip path stroke-box</title>+ <link rel="author" title="CJ Ku" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org">+ <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">+ <link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-1-ref.html">+ <meta name="fuzzy" content="maxDifference=0-64; totalPixels=0-260">+ <meta name="assert" content="Test checks whether clip-path stroke-box works correctly or not.">+ </head>+ <body>+ <svg width="200" height="200" style="position: absolute; left: 0px; top: 0px;">+ <rect x="60" y="60" width="80" height="80" fill="blue" stroke="blue" stroke-width="20" clip-path="circle(50%) stroke-box"/>+ </svg>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-strokeBox-1c.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-strokeBox-1c.htmlnew file mode 100644index 00000000000..e45b4e62992--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-strokeBox-1c.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<html>+ <head>+ <meta charset="utf-8">+ <title>CSS Masking: clip-path: clip path stroke-box with transform</title>+ <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">+ <link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-1-ref.html">+ <meta name="fuzzy" content="maxDifference=0-64; totalPixels=0-260">+ <meta name="assert" content="Test checks whether clip-path stroke-box works correctly or not.">+ </head>+ <body>+ <svg width="200" height="200" style="position: absolute; left: 0px; top: 0px;">+ <g clip-path="circle(50%) stroke-box">+ <rect x="0" y="60" width="80" height="80" fill="blue" stroke="blue" stroke-width="20" transform="translate(60,0)"/>+ </g>+ </svg>+ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-viewBox-1c.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-viewBox-1c.htmlnew file mode 100644index 00000000000..1951b2d8214--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-masking/clip-path/clip-path-viewBox-1c.html@@ -0,0 +1,32 @@+<!DOCTYPE html>+<html>+ <head>+ <meta charset="utf-8">+ <title>CSS Masking: clip-path: clip path view-box</title>+ <link rel="author" title="CJ Ku" href="mailto:[email protected]">+ <link rel="author" title="Mozilla" href="https://www.mozilla.org">+ <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">+ <link rel="match" href="../../../../../expected/wpt-import/css/css-masking/clip-path/clip-path-geometryBox-1-ref.html">+ <meta name="fuzzy" content="maxDifference=0-102; totalPixels=0-750">+ <meta name="assert" content="Test checks whether clip-path view-box works correctly or not. This test is for clip-path applied to an SVG SVG element.">+ <style>+ svg {+ position: absolute;+ left: 40px;+ top: 40px;+ background-color: blue;+ width: 30px;+ height: 30px;+ margin: 10px;+ padding: 10px;+ border: solid blue 25px;+ clip-path: circle(farthest-side) view-box;+ }+ </style>+ </head>+ <body>+ <svg width="200" height="200">+ <rect x="0" y="0" width="200" height="200" fill="blue"/>+ </svg>+ </body>+</html>diff --git a/Tests/LibWeb/Text/expected/css/clip-path-src-function.txt b/Tests/LibWeb/Text/expected/css/clip-path-src-function.txtnew file mode 100644index 00000000000..7e631737652--- /dev/null+++ b/Tests/LibWeb/Text/expected/css/clip-path-src-function.txt@@ -0,0 +1,4 @@+supports src(): true+supports url(): true+specified: src("#clip")+computed: src("#clip")diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-masking/animations/clip-path-geometry-box-interpolation.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-masking/animations/clip-path-geometry-box-interpolation.txtindex 3dea040e15e..342ad09ee31 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-masking/animations/clip-path-geometry-box-interpolation.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-masking/animations/clip-path-geometry-box-interpolation.txt@@ -2,148 +2,148 @@ Harness status: OKFound 144 tests-144 Fail-Fail CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (-0.1) should be [shape(from 0px 0px, line to 10px 10px)]-Fail CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0) should be [shape(from 0px 0px, line to 10px 10px)]-Fail CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0.4) should be [shape(from 0px 0px, line to 10px 10px)]-Fail CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0.5) should be [shape(from 1px 1px, line to 20px 20px) content-box]-Fail CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (1) should be [shape(from 1px 1px, line to 20px 20px) content-box]-Fail CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (1.5) should be [shape(from 1px 1px, line to 20px 20px) content-box]-Fail CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (-0.1) should be [shape(from 0px 0px, line to 10px 10px)]-Fail CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0) should be [shape(from 0px 0px, line to 10px 10px)]-Fail CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0.4) should be [shape(from 0px 0px, line to 10px 10px)]-Fail CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0.5) should be [shape(from 1px 1px, line to 20px 20px) content-box]-Fail CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (1) should be [shape(from 1px 1px, line to 20px 20px) content-box]-Fail CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (1.5) should be [shape(from 1px 1px, line to 20px 20px) content-box]-Fail CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (-0.1) should be [shape(from 0px 0px, line to 10px 10px)]-Fail CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0) should be [shape(from 0px 0px, line to 10px 10px)]-Fail CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0.4) should be [shape(from 0px 0px, line to 10px 10px)]-Fail CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0.5) should be [shape(from 1px 1px, line to 20px 20px) content-box]-Fail CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (1) should be [shape(from 1px 1px, line to 20px 20px) content-box]-Fail CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (1.5) should be [shape(from 1px 1px, line to 20px 20px) content-box]-Fail Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (-0.1) should be [shape(from 0px 0px, line to 10px 10px)]-Fail Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0) should be [shape(from 0px 0px, line to 10px 10px)]-Fail Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0.4) should be [shape(from 0px 0px, line to 10px 10px)]-Fail Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0.5) should be [shape(from 1px 1px, line to 20px 20px) content-box]-Fail Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (1) should be [shape(from 1px 1px, line to 20px 20px) content-box]-Fail Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (1.5) should be [shape(from 1px 1px, line to 20px 20px) content-box]-Fail CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (-0.1) should be [shape(from 0px 0px, line to 10px 10px)]-Fail CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0) should be [shape(from 0px 0px, line to 10px 10px)]-Fail CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0.4) should be [shape(from 0px 0px, line to 10px 10px)]-Fail CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0.5) should be [shape(from 0px 0px, line to 20px 20px) padding-box]-Fail CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (1) should be [shape(from 0px 0px, line to 20px 20px) padding-box]-Fail CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (1.5) should be [shape(from 0px 0px, line to 20px 20px) padding-box]-Fail CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (-0.1) should be [shape(from 0px 0px, line to 10px 10px)]-Fail CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0) should be [shape(from 0px 0px, line to 10px 10px)]-Fail CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0.4) should be [shape(from 0px 0px, line to 10px 10px)]-Fail CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0.5) should be [shape(from 0px 0px, line to 20px 20px) padding-box]-Fail CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (1) should be [shape(from 0px 0px, line to 20px 20px) padding-box]-Fail CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (1.5) should be [shape(from 0px 0px, line to 20px 20px) padding-box]-Fail CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (-0.1) should be [shape(from 0px 0px, line to 10px 10px)]-Fail CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0) should be [shape(from 0px 0px, line to 10px 10px)]-Fail CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0.4) should be [shape(from 0px 0px, line to 10px 10px)]-Fail CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0.5) should be [shape(from 0px 0px, line to 20px 20px) padding-box]-Fail CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (1) should be [shape(from 0px 0px, line to 20px 20px) padding-box]-Fail CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (1.5) should be [shape(from 0px 0px, line to 20px 20px) padding-box]-Fail Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (-0.1) should be [shape(from 0px 0px, line to 10px 10px)]-Fail Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0) should be [shape(from 0px 0px, line to 10px 10px)]-Fail Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0.4) should be [shape(from 0px 0px, line to 10px 10px)]-Fail Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0.5) should be [shape(from 0px 0px, line to 20px 20px) padding-box]-Fail Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (1) should be [shape(from 0px 0px, line to 20px 20px) padding-box]-Fail Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (1.5) should be [shape(from 0px 0px, line to 20px 20px) padding-box]-Fail CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (-0.1) should be [shape(from -1px -1px, line to 9px 9px) margin-box]-Fail CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0) should be [shape(from 0px 0px, line to 10px 10px) margin-box]-Fail CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0.4) should be [shape(from 4px 4px, line to 14px 14px) margin-box]-Fail CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0.5) should be [shape(from 5px 5px, line to 15px 15px) margin-box]-Fail CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (1) should be [shape(from 10px 10px, line to 20px 20px) margin-box]-Fail CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (1.5) should be [shape(from 15px 15px, line to 25px 25px) margin-box]-Fail CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (-0.1) should be [shape(from -1px -1px, line to 9px 9px) margin-box]-Fail CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0) should be [shape(from 0px 0px, line to 10px 10px) margin-box]-Fail CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0.4) should be [shape(from 4px 4px, line to 14px 14px) margin-box]-Fail CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0.5) should be [shape(from 5px 5px, line to 15px 15px) margin-box]-Fail CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (1) should be [shape(from 10px 10px, line to 20px 20px) margin-box]-Fail CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (1.5) should be [shape(from 15px 15px, line to 25px 25px) margin-box]-Fail CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (-0.1) should be [shape(from -1px -1px, line to 9px 9px) margin-box]-Fail CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0) should be [shape(from 0px 0px, line to 10px 10px) margin-box]-Fail CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0.4) should be [shape(from 4px 4px, line to 14px 14px) margin-box]-Fail CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0.5) should be [shape(from 5px 5px, line to 15px 15px) margin-box]-Fail CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (1) should be [shape(from 10px 10px, line to 20px 20px) margin-box]-Fail CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (1.5) should be [shape(from 15px 15px, line to 25px 25px) margin-box]-Fail Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (-0.1) should be [shape(from -1px -1px, line to 9px 9px) margin-box]-Fail Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0) should be [shape(from 0px 0px, line to 10px 10px) margin-box]-Fail Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0.4) should be [shape(from 4px 4px, line to 14px 14px) margin-box]-Fail Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0.5) should be [shape(from 5px 5px, line to 15px 15px) margin-box]-Fail Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (1) should be [shape(from 10px 10px, line to 20px 20px) margin-box]-Fail Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (1.5) should be [shape(from 15px 15px, line to 25px 25px) margin-box]-Fail CSS Transitions: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (-0.1) should be [circle(10px)]-Fail CSS Transitions: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0) should be [circle(10px)]-Fail CSS Transitions: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0.4) should be [circle(10px)]-Fail CSS Transitions: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0.5) should be [circle(30px) content-box]-Fail CSS Transitions: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (1) should be [circle(30px) content-box]-Fail CSS Transitions: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (1.5) should be [circle(30px) content-box]-Fail CSS Transitions with transition: all: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (-0.1) should be [circle(10px)]-Fail CSS Transitions with transition: all: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0) should be [circle(10px)]-Fail CSS Transitions with transition: all: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0.4) should be [circle(10px)]-Fail CSS Transitions with transition: all: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0.5) should be [circle(30px) content-box]-Fail CSS Transitions with transition: all: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (1) should be [circle(30px) content-box]-Fail CSS Transitions with transition: all: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (1.5) should be [circle(30px) content-box]-Fail CSS Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (-0.1) should be [circle(10px)]-Fail CSS Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0) should be [circle(10px)]-Fail CSS Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0.4) should be [circle(10px)]-Fail CSS Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0.5) should be [circle(30px) content-box]-Fail CSS Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (1) should be [circle(30px) content-box]-Fail CSS Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (1.5) should be [circle(30px) content-box]-Fail Web Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (-0.1) should be [circle(10px)]-Fail Web Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0) should be [circle(10px)]-Fail Web Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0.4) should be [circle(10px)]-Fail Web Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0.5) should be [circle(30px) content-box]-Fail Web Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (1) should be [circle(30px) content-box]-Fail Web Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (1.5) should be [circle(30px) content-box]-Fail CSS Transitions: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (-0.1) should be [circle(20px)]-Fail CSS Transitions: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0) should be [circle(20px)]-Fail CSS Transitions: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0.4) should be [circle(20px)]-Fail CSS Transitions: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0.5) should be [circle(20px) padding-box]-Fail CSS Transitions: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (1) should be [circle(20px) padding-box]-Fail CSS Transitions: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (1.5) should be [circle(20px) padding-box]-Fail CSS Transitions with transition: all: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (-0.1) should be [circle(20px)]-Fail CSS Transitions with transition: all: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0) should be [circle(20px)]-Fail CSS Transitions with transition: all: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0.4) should be [circle(20px)]-Fail CSS Transitions with transition: all: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0.5) should be [circle(20px) padding-box]-Fail CSS Transitions with transition: all: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (1) should be [circle(20px) padding-box]-Fail CSS Transitions with transition: all: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (1.5) should be [circle(20px) padding-box]-Fail CSS Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (-0.1) should be [circle(20px)]-Fail CSS Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0) should be [circle(20px)]-Fail CSS Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0.4) should be [circle(20px)]-Fail CSS Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0.5) should be [circle(20px) padding-box]-Fail CSS Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (1) should be [circle(20px) padding-box]-Fail CSS Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (1.5) should be [circle(20px) padding-box]-Fail Web Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (-0.1) should be [circle(20px)]-Fail Web Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0) should be [circle(20px)]-Fail Web Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0.4) should be [circle(20px)]-Fail Web Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0.5) should be [circle(20px) padding-box]-Fail Web Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (1) should be [circle(20px) padding-box]-Fail Web Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (1.5) should be [circle(20px) padding-box]-Fail CSS Transitions: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (-0.1) should be [circle(8px) margin-box]-Fail CSS Transitions: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0) should be [circle(10px) margin-box]-Fail CSS Transitions: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0.4) should be [circle(18px) margin-box]-Fail CSS Transitions: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0.5) should be [circle(20px) margin-box]-Fail CSS Transitions: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (1) should be [circle(30px) margin-box]-Fail CSS Transitions: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (1.5) should be [circle(40px) margin-box]-Fail CSS Transitions with transition: all: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (-0.1) should be [circle(8px) margin-box]-Fail CSS Transitions with transition: all: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0) should be [circle(10px) margin-box]-Fail CSS Transitions with transition: all: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0.4) should be [circle(18px) margin-box]-Fail CSS Transitions with transition: all: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0.5) should be [circle(20px) margin-box]-Fail CSS Transitions with transition: all: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (1) should be [circle(30px) margin-box]-Fail CSS Transitions with transition: all: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (1.5) should be [circle(40px) margin-box]-Fail CSS Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (-0.1) should be [circle(8px) margin-box]-Fail CSS Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0) should be [circle(10px) margin-box]-Fail CSS Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0.4) should be [circle(18px) margin-box]-Fail CSS Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0.5) should be [circle(20px) margin-box]-Fail CSS Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (1) should be [circle(30px) margin-box]-Fail CSS Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (1.5) should be [circle(40px) margin-box]-Fail Web Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (-0.1) should be [circle(8px) margin-box]-Fail Web Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0) should be [circle(10px) margin-box]-Fail Web Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0.4) should be [circle(18px) margin-box]-Fail Web Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0.5) should be [circle(20px) margin-box]-Fail Web Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (1) should be [circle(30px) margin-box]-Fail Web Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (1.5) should be [circle(40px) margin-box]\ No newline at end of file+144 Pass+Pass CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (-0.1) should be [shape(from 0px 0px, line to 10px 10px)]+Pass CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0) should be [shape(from 0px 0px, line to 10px 10px)]+Pass CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0.4) should be [shape(from 0px 0px, line to 10px 10px)]+Pass CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0.5) should be [shape(from 1px 1px, line to 20px 20px) content-box]+Pass CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (1) should be [shape(from 1px 1px, line to 20px 20px) content-box]+Pass CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (1.5) should be [shape(from 1px 1px, line to 20px 20px) content-box]+Pass CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (-0.1) should be [shape(from 0px 0px, line to 10px 10px)]+Pass CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0) should be [shape(from 0px 0px, line to 10px 10px)]+Pass CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0.4) should be [shape(from 0px 0px, line to 10px 10px)]+Pass CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0.5) should be [shape(from 1px 1px, line to 20px 20px) content-box]+Pass CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (1) should be [shape(from 1px 1px, line to 20px 20px) content-box]+Pass CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (1.5) should be [shape(from 1px 1px, line to 20px 20px) content-box]+Pass CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (-0.1) should be [shape(from 0px 0px, line to 10px 10px)]+Pass CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0) should be [shape(from 0px 0px, line to 10px 10px)]+Pass CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0.4) should be [shape(from 0px 0px, line to 10px 10px)]+Pass CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0.5) should be [shape(from 1px 1px, line to 20px 20px) content-box]+Pass CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (1) should be [shape(from 1px 1px, line to 20px 20px) content-box]+Pass CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (1.5) should be [shape(from 1px 1px, line to 20px 20px) content-box]+Pass Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (-0.1) should be [shape(from 0px 0px, line to 10px 10px)]+Pass Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0) should be [shape(from 0px 0px, line to 10px 10px)]+Pass Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0.4) should be [shape(from 0px 0px, line to 10px 10px)]+Pass Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (0.5) should be [shape(from 1px 1px, line to 20px 20px) content-box]+Pass Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (1) should be [shape(from 1px 1px, line to 20px 20px) content-box]+Pass Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) border-box] to [shape(from 1px 1px, line to 20px 20px) content-box] at (1.5) should be [shape(from 1px 1px, line to 20px 20px) content-box]+Pass CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (-0.1) should be [shape(from 0px 0px, line to 10px 10px)]+Pass CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0) should be [shape(from 0px 0px, line to 10px 10px)]+Pass CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0.4) should be [shape(from 0px 0px, line to 10px 10px)]+Pass CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0.5) should be [shape(from 0px 0px, line to 20px 20px) padding-box]+Pass CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (1) should be [shape(from 0px 0px, line to 20px 20px) padding-box]+Pass CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (1.5) should be [shape(from 0px 0px, line to 20px 20px) padding-box]+Pass CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (-0.1) should be [shape(from 0px 0px, line to 10px 10px)]+Pass CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0) should be [shape(from 0px 0px, line to 10px 10px)]+Pass CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0.4) should be [shape(from 0px 0px, line to 10px 10px)]+Pass CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0.5) should be [shape(from 0px 0px, line to 20px 20px) padding-box]+Pass CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (1) should be [shape(from 0px 0px, line to 20px 20px) padding-box]+Pass CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (1.5) should be [shape(from 0px 0px, line to 20px 20px) padding-box]+Pass CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (-0.1) should be [shape(from 0px 0px, line to 10px 10px)]+Pass CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0) should be [shape(from 0px 0px, line to 10px 10px)]+Pass CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0.4) should be [shape(from 0px 0px, line to 10px 10px)]+Pass CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0.5) should be [shape(from 0px 0px, line to 20px 20px) padding-box]+Pass CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (1) should be [shape(from 0px 0px, line to 20px 20px) padding-box]+Pass CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (1.5) should be [shape(from 0px 0px, line to 20px 20px) padding-box]+Pass Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (-0.1) should be [shape(from 0px 0px, line to 10px 10px)]+Pass Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0) should be [shape(from 0px 0px, line to 10px 10px)]+Pass Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0.4) should be [shape(from 0px 0px, line to 10px 10px)]+Pass Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (0.5) should be [shape(from 0px 0px, line to 20px 20px) padding-box]+Pass Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (1) should be [shape(from 0px 0px, line to 20px 20px) padding-box]+Pass Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px)] to [shape(from 0px 0px, line to 20px 20px) padding-box] at (1.5) should be [shape(from 0px 0px, line to 20px 20px) padding-box]+Pass CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (-0.1) should be [shape(from -1px -1px, line to 9px 9px) margin-box]+Pass CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0) should be [shape(from 0px 0px, line to 10px 10px) margin-box]+Pass CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0.4) should be [shape(from 4px 4px, line to 14px 14px) margin-box]+Pass CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0.5) should be [shape(from 5px 5px, line to 15px 15px) margin-box]+Pass CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (1) should be [shape(from 10px 10px, line to 20px 20px) margin-box]+Pass CSS Transitions: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (1.5) should be [shape(from 15px 15px, line to 25px 25px) margin-box]+Pass CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (-0.1) should be [shape(from -1px -1px, line to 9px 9px) margin-box]+Pass CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0) should be [shape(from 0px 0px, line to 10px 10px) margin-box]+Pass CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0.4) should be [shape(from 4px 4px, line to 14px 14px) margin-box]+Pass CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0.5) should be [shape(from 5px 5px, line to 15px 15px) margin-box]+Pass CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (1) should be [shape(from 10px 10px, line to 20px 20px) margin-box]+Pass CSS Transitions with transition: all: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (1.5) should be [shape(from 15px 15px, line to 25px 25px) margin-box]+Pass CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (-0.1) should be [shape(from -1px -1px, line to 9px 9px) margin-box]+Pass CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0) should be [shape(from 0px 0px, line to 10px 10px) margin-box]+Pass CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0.4) should be [shape(from 4px 4px, line to 14px 14px) margin-box]+Pass CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0.5) should be [shape(from 5px 5px, line to 15px 15px) margin-box]+Pass CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (1) should be [shape(from 10px 10px, line to 20px 20px) margin-box]+Pass CSS Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (1.5) should be [shape(from 15px 15px, line to 25px 25px) margin-box]+Pass Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (-0.1) should be [shape(from -1px -1px, line to 9px 9px) margin-box]+Pass Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0) should be [shape(from 0px 0px, line to 10px 10px) margin-box]+Pass Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0.4) should be [shape(from 4px 4px, line to 14px 14px) margin-box]+Pass Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (0.5) should be [shape(from 5px 5px, line to 15px 15px) margin-box]+Pass Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (1) should be [shape(from 10px 10px, line to 20px 20px) margin-box]+Pass Web Animations: property <clip-path> from [shape(from 0px 0px, line to 10px 10px) margin-box] to [shape(from 10px 10px, line to 20px 20px) margin-box] at (1.5) should be [shape(from 15px 15px, line to 25px 25px) margin-box]+Pass CSS Transitions: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (-0.1) should be [circle(10px)]+Pass CSS Transitions: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0) should be [circle(10px)]+Pass CSS Transitions: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0.4) should be [circle(10px)]+Pass CSS Transitions: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0.5) should be [circle(30px) content-box]+Pass CSS Transitions: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (1) should be [circle(30px) content-box]+Pass CSS Transitions: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (1.5) should be [circle(30px) content-box]+Pass CSS Transitions with transition: all: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (-0.1) should be [circle(10px)]+Pass CSS Transitions with transition: all: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0) should be [circle(10px)]+Pass CSS Transitions with transition: all: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0.4) should be [circle(10px)]+Pass CSS Transitions with transition: all: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0.5) should be [circle(30px) content-box]+Pass CSS Transitions with transition: all: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (1) should be [circle(30px) content-box]+Pass CSS Transitions with transition: all: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (1.5) should be [circle(30px) content-box]+Pass CSS Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (-0.1) should be [circle(10px)]+Pass CSS Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0) should be [circle(10px)]+Pass CSS Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0.4) should be [circle(10px)]+Pass CSS Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0.5) should be [circle(30px) content-box]+Pass CSS Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (1) should be [circle(30px) content-box]+Pass CSS Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (1.5) should be [circle(30px) content-box]+Pass Web Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (-0.1) should be [circle(10px)]+Pass Web Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0) should be [circle(10px)]+Pass Web Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0.4) should be [circle(10px)]+Pass Web Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (0.5) should be [circle(30px) content-box]+Pass Web Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (1) should be [circle(30px) content-box]+Pass Web Animations: property <clip-path> from [circle(10px) border-box] to [circle(30px) content-box] at (1.5) should be [circle(30px) content-box]+Pass CSS Transitions: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (-0.1) should be [circle(20px)]+Pass CSS Transitions: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0) should be [circle(20px)]+Pass CSS Transitions: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0.4) should be [circle(20px)]+Pass CSS Transitions: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0.5) should be [circle(20px) padding-box]+Pass CSS Transitions: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (1) should be [circle(20px) padding-box]+Pass CSS Transitions: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (1.5) should be [circle(20px) padding-box]+Pass CSS Transitions with transition: all: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (-0.1) should be [circle(20px)]+Pass CSS Transitions with transition: all: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0) should be [circle(20px)]+Pass CSS Transitions with transition: all: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0.4) should be [circle(20px)]+Pass CSS Transitions with transition: all: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0.5) should be [circle(20px) padding-box]+Pass CSS Transitions with transition: all: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (1) should be [circle(20px) padding-box]+Pass CSS Transitions with transition: all: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (1.5) should be [circle(20px) padding-box]+Pass CSS Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (-0.1) should be [circle(20px)]+Pass CSS Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0) should be [circle(20px)]+Pass CSS Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0.4) should be [circle(20px)]+Pass CSS Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0.5) should be [circle(20px) padding-box]+Pass CSS Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (1) should be [circle(20px) padding-box]+Pass CSS Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (1.5) should be [circle(20px) padding-box]+Pass Web Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (-0.1) should be [circle(20px)]+Pass Web Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0) should be [circle(20px)]+Pass Web Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0.4) should be [circle(20px)]+Pass Web Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (0.5) should be [circle(20px) padding-box]+Pass Web Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (1) should be [circle(20px) padding-box]+Pass Web Animations: property <clip-path> from [circle(20px)] to [circle(20px) padding-box] at (1.5) should be [circle(20px) padding-box]+Pass CSS Transitions: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (-0.1) should be [circle(8px) margin-box]+Pass CSS Transitions: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0) should be [circle(10px) margin-box]+Pass CSS Transitions: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0.4) should be [circle(18px) margin-box]+Pass CSS Transitions: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0.5) should be [circle(20px) margin-box]+Pass CSS Transitions: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (1) should be [circle(30px) margin-box]+Pass CSS Transitions: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (1.5) should be [circle(40px) margin-box]+Pass CSS Transitions with transition: all: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (-0.1) should be [circle(8px) margin-box]+Pass CSS Transitions with transition: all: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0) should be [circle(10px) margin-box]+Pass CSS Transitions with transition: all: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0.4) should be [circle(18px) margin-box]+Pass CSS Transitions with transition: all: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0.5) should be [circle(20px) margin-box]+Pass CSS Transitions with transition: all: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (1) should be [circle(30px) margin-box]+Pass CSS Transitions with transition: all: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (1.5) should be [circle(40px) margin-box]+Pass CSS Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (-0.1) should be [circle(8px) margin-box]+Pass CSS Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0) should be [circle(10px) margin-box]+Pass CSS Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0.4) should be [circle(18px) margin-box]+Pass CSS Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0.5) should be [circle(20px) margin-box]+Pass CSS Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (1) should be [circle(30px) margin-box]+Pass CSS Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (1.5) should be [circle(40px) margin-box]+Pass Web Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (-0.1) should be [circle(8px) margin-box]+Pass Web Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0) should be [circle(10px) margin-box]+Pass Web Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0.4) should be [circle(18px) margin-box]+Pass Web Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (0.5) should be [circle(20px) margin-box]+Pass Web Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (1) should be [circle(30px) margin-box]+Pass Web Animations: property <clip-path> from [circle(10px) margin-box] to [circle(30px) margin-box] at (1.5) should be [circle(40px) margin-box]\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-masking/clip-path/animations/clip-path-interpolation-discrete.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-masking/clip-path/animations/clip-path-interpolation-discrete.txtindex f6351b09713..b08466af66c 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-masking/clip-path/animations/clip-path-interpolation-discrete.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-masking/clip-path/animations/clip-path-interpolation-discrete.txt@@ -2,8 +2,7 @@ Harness status: OKFound 168 tests-120 Pass-48 Fail+168 PassPass CSS Transitions: property <clip-path> from [circle(10px)] to [inset(20px)] at (-1) should be [circle(10px)]Pass CSS Transitions: property <clip-path> from [circle(10px)] to [inset(20px)] at (0) should be [circle(10px)]Pass CSS Transitions: property <clip-path> from [circle(10px)] to [inset(20px)] at (0.4) should be [circle(10px)]@@ -28,30 +27,30 @@ Pass Web Animations: property <clip-path> from [circle(10px)] to [inset(20px)] aPass Web Animations: property <clip-path> from [circle(10px)] to [inset(20px)] at (0.5) should be [inset(20px)]Pass Web Animations: property <clip-path> from [circle(10px)] to [inset(20px)] at (1) should be [inset(20px)]Pass Web Animations: property <clip-path> from [circle(10px)] to [inset(20px)] at (1.5) should be [inset(20px)]-Fail CSS Transitions: property <clip-path> from [ellipse()] to [padding-box] at (-1) should be [ellipse()]-Fail CSS Transitions: property <clip-path> from [ellipse()] to [padding-box] at (0) should be [ellipse()]-Fail CSS Transitions: property <clip-path> from [ellipse()] to [padding-box] at (0.4) should be [ellipse()]-Fail CSS Transitions: property <clip-path> from [ellipse()] to [padding-box] at (0.5) should be [padding-box]-Fail CSS Transitions: property <clip-path> from [ellipse()] to [padding-box] at (1) should be [padding-box]-Fail CSS Transitions: property <clip-path> from [ellipse()] to [padding-box] at (1.5) should be [padding-box]-Fail CSS Transitions with transition: all: property <clip-path> from [ellipse()] to [padding-box] at (-1) should be [ellipse()]-Fail CSS Transitions with transition: all: property <clip-path> from [ellipse()] to [padding-box] at (0) should be [ellipse()]-Fail CSS Transitions with transition: all: property <clip-path> from [ellipse()] to [padding-box] at (0.4) should be [ellipse()]-Fail CSS Transitions with transition: all: property <clip-path> from [ellipse()] to [padding-box] at (0.5) should be [padding-box]-Fail CSS Transitions with transition: all: property <clip-path> from [ellipse()] to [padding-box] at (1) should be [padding-box]-Fail CSS Transitions with transition: all: property <clip-path> from [ellipse()] to [padding-box] at (1.5) should be [padding-box]-Fail CSS Animations: property <clip-path> from [ellipse()] to [padding-box] at (-1) should be [ellipse()]-Fail CSS Animations: property <clip-path> from [ellipse()] to [padding-box] at (0) should be [ellipse()]-Fail CSS Animations: property <clip-path> from [ellipse()] to [padding-box] at (0.4) should be [ellipse()]-Fail CSS Animations: property <clip-path> from [ellipse()] to [padding-box] at (0.5) should be [padding-box]-Fail CSS Animations: property <clip-path> from [ellipse()] to [padding-box] at (1) should be [padding-box]-Fail CSS Animations: property <clip-path> from [ellipse()] to [padding-box] at (1.5) should be [padding-box]-Fail Web Animations: property <clip-path> from [ellipse()] to [padding-box] at (-1) should be [ellipse()]-Fail Web Animations: property <clip-path> from [ellipse()] to [padding-box] at (0) should be [ellipse()]-Fail Web Animations: property <clip-path> from [ellipse()] to [padding-box] at (0.4) should be [ellipse()]-Fail Web Animations: property <clip-path> from [ellipse()] to [padding-box] at (0.5) should be [padding-box]-Fail Web Animations: property <clip-path> from [ellipse()] to [padding-box] at (1) should be [padding-box]-Fail Web Animations: property <clip-path> from [ellipse()] to [padding-box] at (1.5) should be [padding-box]+Pass CSS Transitions: property <clip-path> from [ellipse()] to [padding-box] at (-1) should be [ellipse()]+Pass CSS Transitions: property <clip-path> from [ellipse()] to [padding-box] at (0) should be [ellipse()]+Pass CSS Transitions: property <clip-path> from [ellipse()] to [padding-box] at (0.4) should be [ellipse()]+Pass CSS Transitions: property <clip-path> from [ellipse()] to [padding-box] at (0.5) should be [padding-box]+Pass CSS Transitions: property <clip-path> from [ellipse()] to [padding-box] at (1) should be [padding-box]+Pass CSS Transitions: property <clip-path> from [ellipse()] to [padding-box] at (1.5) should be [padding-box]+Pass CSS Transitions with transition: all: property <clip-path> from [ellipse()] to [padding-box] at (-1) should be [ellipse()]+Pass CSS Transitions with transition: all: property <clip-path> from [ellipse()] to [padding-box] at (0) should be [ellipse()]+Pass CSS Transitions with transition: all: property <clip-path> from [ellipse()] to [padding-box] at (0.4) should be [ellipse()]+Pass CSS Transitions with transition: all: property <clip-path> from [ellipse()] to [padding-box] at (0.5) should be [padding-box]+Pass CSS Transitions with transition: all: property <clip-path> from [ellipse()] to [padding-box] at (1) should be [padding-box]+Pass CSS Transitions with transition: all: property <clip-path> from [ellipse()] to [padding-box] at (1.5) should be [padding-box]+Pass CSS Animations: property <clip-path> from [ellipse()] to [padding-box] at (-1) should be [ellipse()]+Pass CSS Animations: property <clip-path> from [ellipse()] to [padding-box] at (0) should be [ellipse()]+Pass CSS Animations: property <clip-path> from [ellipse()] to [padding-box] at (0.4) should be [ellipse()]+Pass CSS Animations: property <clip-path> from [ellipse()] to [padding-box] at (0.5) should be [padding-box]+Pass CSS Animations: property <clip-path> from [ellipse()] to [padding-box] at (1) should be [padding-box]+Pass CSS Animations: property <clip-path> from [ellipse()] to [padding-box] at (1.5) should be [padding-box]+Pass Web Animations: property <clip-path> from [ellipse()] to [padding-box] at (-1) should be [ellipse()]+Pass Web Animations: property <clip-path> from [ellipse()] to [padding-box] at (0) should be [ellipse()]+Pass Web Animations: property <clip-path> from [ellipse()] to [padding-box] at (0.4) should be [ellipse()]+Pass Web Animations: property <clip-path> from [ellipse()] to [padding-box] at (0.5) should be [padding-box]+Pass Web Animations: property <clip-path> from [ellipse()] to [padding-box] at (1) should be [padding-box]+Pass Web Animations: property <clip-path> from [ellipse()] to [padding-box] at (1.5) should be [padding-box]Pass CSS Transitions: property <clip-path> from neutral to [none] at (-1) should be [circle(10px)]Pass CSS Transitions: property <clip-path> from neutral to [none] at (0) should be [circle(10px)]Pass CSS Transitions: property <clip-path> from neutral to [none] at (0.4) should be [circle(10px)]@@ -148,27 +147,27 @@ Pass Web Animations: property <clip-path> from [unset] to [inset(10%)] at (0.4)Pass Web Animations: property <clip-path> from [unset] to [inset(10%)] at (0.5) should be [inset(10%)]Pass Web Animations: property <clip-path> from [unset] to [inset(10%)] at (1) should be [inset(10%)]Pass Web Animations: property <clip-path> from [unset] to [inset(10%)] at (1.5) should be [inset(10%)]-Fail CSS Transitions: property <clip-path> from [stroke-box] to [url("abc")] at (-0.1) should be [stroke-box]-Fail CSS Transitions: property <clip-path> from [stroke-box] to [url("abc")] at (0) should be [stroke-box]-Fail CSS Transitions: property <clip-path> from [stroke-box] to [url("abc")] at (0.4) should be [stroke-box]-Fail CSS Transitions: property <clip-path> from [stroke-box] to [url("abc")] at (0.5) should be [url(file:///.../abc)]-Fail CSS Transitions: property <clip-path> from [stroke-box] to [url("abc")] at (1) should be [url(file:///.../abc)]-Fail CSS Transitions: property <clip-path> from [stroke-box] to [url("abc")] at (1.5) should be [url(file:///.../abc)]-Fail CSS Transitions with transition: all: property <clip-path> from [stroke-box] to [url("abc")] at (-0.1) should be [stroke-box]-Fail CSS Transitions with transition: all: property <clip-path> from [stroke-box] to [url("abc")] at (0) should be [stroke-box]-Fail CSS Transitions with transition: all: property <clip-path> from [stroke-box] to [url("abc")] at (0.4) should be [stroke-box]-Fail CSS Transitions with transition: all: property <clip-path> from [stroke-box] to [url("abc")] at (0.5) should be [url(file:///.../abc)]-Fail CSS Transitions with transition: all: property <clip-path> from [stroke-box] to [url("abc")] at (1) should be [url(file:///.../abc)]-Fail CSS Transitions with transition: all: property <clip-path> from [stroke-box] to [url("abc")] at (1.5) should be [url(file:///.../abc)]-Fail CSS Animations: property <clip-path> from [stroke-box] to [url("abc")] at (-0.1) should be [stroke-box]-Fail CSS Animations: property <clip-path> from [stroke-box] to [url("abc")] at (0) should be [stroke-box]-Fail CSS Animations: property <clip-path> from [stroke-box] to [url("abc")] at (0.4) should be [stroke-box]-Fail CSS Animations: property <clip-path> from [stroke-box] to [url("abc")] at (0.5) should be [url(file:///.../abc)]-Fail CSS Animations: property <clip-path> from [stroke-box] to [url("abc")] at (1) should be [url(file:///.../abc)]-Fail CSS Animations: property <clip-path> from [stroke-box] to [url("abc")] at (1.5) should be [url(file:///.../abc)]-Fail Web Animations: property <clip-path> from [stroke-box] to [url("abc")] at (-0.1) should be [stroke-box]-Fail Web Animations: property <clip-path> from [stroke-box] to [url("abc")] at (0) should be [stroke-box]-Fail Web Animations: property <clip-path> from [stroke-box] to [url("abc")] at (0.4) should be [stroke-box]-Fail Web Animations: property <clip-path> from [stroke-box] to [url("abc")] at (0.5) should be [url(file:///.../abc)]-Fail Web Animations: property <clip-path> from [stroke-box] to [url("abc")] at (1) should be [url(file:///.../abc)]-Fail Web Animations: property <clip-path> from [stroke-box] to [url("abc")] at (1.5) should be [url(file:///.../abc)]\ No newline at end of file+Pass CSS Transitions: property <clip-path> from [stroke-box] to [url("abc")] at (-0.1) should be [stroke-box]+Pass CSS Transitions: property <clip-path> from [stroke-box] to [url("abc")] at (0) should be [stroke-box]+Pass CSS Transitions: property <clip-path> from [stroke-box] to [url("abc")] at (0.4) should be [stroke-box]+Pass CSS Transitions: property <clip-path> from [stroke-box] to [url("abc")] at (0.5) should be [url(file:///.../abc)]+Pass CSS Transitions: property <clip-path> from [stroke-box] to [url("abc")] at (1) should be [url(file:///.../abc)]+Pass CSS Transitions: property <clip-path> from [stroke-box] to [url("abc")] at (1.5) should be [url(file:///.../abc)]+Pass CSS Transitions with transition: all: property <clip-path> from [stroke-box] to [url("abc")] at (-0.1) should be [stroke-box]+Pass CSS Transitions with transition: all: property <clip-path> from [stroke-box] to [url("abc")] at (0) should be [stroke-box]+Pass CSS Transitions with transition: all: property <clip-path> from [stroke-box] to [url("abc")] at (0.4) should be [stroke-box]+Pass CSS Transitions with transition: all: property <clip-path> from [stroke-box] to [url("abc")] at (0.5) should be [url(file:///.../abc)]+Pass CSS Transitions with transition: all: property <clip-path> from [stroke-box] to [url("abc")] at (1) should be [url(file:///.../abc)]+Pass CSS Transitions with transition: all: property <clip-path> from [stroke-box] to [url("abc")] at (1.5) should be [url(file:///.../abc)]+Pass CSS Animations: property <clip-path> from [stroke-box] to [url("abc")] at (-0.1) should be [stroke-box]+Pass CSS Animations: property <clip-path> from [stroke-box] to [url("abc")] at (0) should be [stroke-box]+Pass CSS Animations: property <clip-path> from [stroke-box] to [url("abc")] at (0.4) should be [stroke-box]+Pass CSS Animations: property <clip-path> from [stroke-box] to [url("abc")] at (0.5) should be [url(file:///.../abc)]+Pass CSS Animations: property <clip-path> from [stroke-box] to [url("abc")] at (1) should be [url(file:///.../abc)]+Pass CSS Animations: property <clip-path> from [stroke-box] to [url("abc")] at (1.5) should be [url(file:///.../abc)]+Pass Web Animations: property <clip-path> from [stroke-box] to [url("abc")] at (-0.1) should be [stroke-box]+Pass Web Animations: property <clip-path> from [stroke-box] to [url("abc")] at (0) should be [stroke-box]+Pass Web Animations: property <clip-path> from [stroke-box] to [url("abc")] at (0.4) should be [stroke-box]+Pass Web Animations: property <clip-path> from [stroke-box] to [url("abc")] at (0.5) should be [url(file:///.../abc)]+Pass Web Animations: property <clip-path> from [stroke-box] to [url("abc")] at (1) should be [url(file:///.../abc)]+Pass Web Animations: property <clip-path> from [stroke-box] to [url("abc")] at (1.5) should be [url(file:///.../abc)]\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-masking/parsing/clip-path-computed.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-masking/parsing/clip-path-computed.txtnew file mode 100644index 00000000000..1c24e4e367d--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-masking/parsing/clip-path-computed.txt@@ -0,0 +1,27 @@+Harness status: OK++Found 21 tests++17 Pass+4 Fail+Pass Property clip-path value 'circle(calc(10px + 0.5em) at -50% 50%)'+Pass Property clip-path value 'circle(calc(10px - 0.5em) at 50% -50%)'+Pass Property clip-path value 'ellipse(at 50% 50%)'+Pass Property clip-path value 'ellipse(60% closest-side at 50% 50%)'+Fail Property clip-path value 'polygon(round 1em, 1px 2px, 3em 4em)'+Fail Property clip-path value 'polygon(evenodd round 6pt, 1px 2px, 3em 4em, 6pt 6%)'+Fail Property clip-path value 'polygon(round 0px, 1px 2px, 3px 4px)'+Fail Property clip-path value 'polygon(round calc(1em + 2px), 1px 2px, 3px 4px)'+Pass Property clip-path value 'xywh(0 1% 2px 0.5em)'+Pass Property clip-path value 'xywh(0px 1% 2px 0.5em round 0)'+Pass Property clip-path value 'xywh(0px 1% 2px 3% round 0 1px)'+Pass Property clip-path value 'xywh(0px 1% 2px 3% round 0px 1px 2em)'+Pass Property clip-path value 'xywh(0px 1% 2px 3% round 0px 1px 2% 3px)'+Pass Property clip-path value 'xywh(calc(0px) calc(1px + 1%) calc(2px + 2%) calc(3px + 3%))'+Pass Property clip-path value 'rect(auto auto auto auto)'+Pass Property clip-path value 'rect(0 1% 2px 0.5em)'+Pass Property clip-path value 'rect(0px 1% auto 0.5em round 0)'+Pass Property clip-path value 'rect(0px 1% auto 3% round 0 1px)'+Pass Property clip-path value 'rect(0px 1% auto 3% round 0px 1px 2em)'+Pass Property clip-path value 'rect(0px 1% auto 3% round 0px 1px 2% 3px)'+Pass Property clip-path value 'rect(calc(0px) calc(1px + 1%) calc(2px + 2%) calc(3px + 3%))'\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-masking/parsing/clip-path-invalid.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-masking/parsing/clip-path-invalid.txtnew file mode 100644index 00000000000..75d29be05fb--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-masking/parsing/clip-path-invalid.txt@@ -0,0 +1,53 @@+Harness status: OK++Found 48 tests++48 Pass+Pass e.style['clip-path'] = "auto" should not set the property value+Pass e.style['clip-path'] = "ray(0deg)" should not set the property value+Pass e.style['clip-path'] = "inset()" should not set the property value+Pass e.style['clip-path'] = "inset(123)" should not set the property value+Pass e.style['clip-path'] = "inset(1% 2% 3% 4% 5%)" should not set the property value+Pass e.style['clip-path'] = "inset(round 0)" should not set the property value+Pass e.style['clip-path'] = "inset(0px round)" should not set the property value+Pass e.style['clip-path'] = "inset(0px round 123)" should not set the property value+Pass e.style['clip-path'] = "inset(0px round 1% 2% 3% 4% 5%)" should not set the property value+Pass e.style['clip-path'] = "inset(0px round / 1px)" should not set the property value+Pass e.style['clip-path'] = "inset(10px round -20px)" should not set the property value+Pass e.style['clip-path'] = "inset(30% round -40%)" should not set the property value+Pass e.style['clip-path'] = "circle(123)" should not set the property value+Pass e.style['clip-path'] = "circle(at)" should not set the property value+Pass e.style['clip-path'] = "circle(10% 20%)" should not set the property value+Pass e.style['clip-path'] = "circle(-10px at 20px 30px)" should not set the property value+Pass e.style['clip-path'] = "circle(-10% at 20% 30%)" should not set the property value+Pass e.style['clip-path'] = "circle(1% 2% at 0% 100%)" should not set the property value+Pass e.style['clip-path'] = "ellipse(farthest-side at)" should not set the property value+Pass e.style['clip-path'] = "ellipse(1% 2% top right)" should not set the property value+Pass e.style['clip-path'] = "ellipse(3%)" should not set the property value+Pass e.style['clip-path'] = "ellipse(3% at 100% 0%)" should not set the property value+Pass e.style['clip-path'] = "ellipse(closest-side)" should not set the property value+Pass e.style['clip-path'] = "ellipse(farthest-side at 100% 0%)" should not set the property value+Pass e.style['clip-path'] = "ellipse(10% -20% at 30% 40%)" should not set the property value+Pass e.style['clip-path'] = "ellipse(-50px 60px at 70% 80%)" should not set the property value+Pass e.style['clip-path'] = "polygon(1%)" should not set the property value+Pass e.style['clip-path'] = "polygon(round, 1px 2px)" should not set the property value+Pass e.style['clip-path'] = "polygon(round -1px, 1px 2px)" should not set the property value+Pass e.style['clip-path'] = "polygon(round 1%, 1px 2px)" should not set the property value+Pass e.style['clip-path'] = "polygon(round 45deg, 1px 2px)" should not set the property value+Pass e.style['clip-path'] = "polygon(round 1px 1px 2px)" should not set the property value+Pass e.style['clip-path'] = "polygon(1px 2px, round 1px)" should not set the property value+Pass e.style['clip-path'] = "polygon(round 1px round 2px, 1px 2px)" should not set the property value+Pass e.style['clip-path'] = "polygon(round 1px nonzero, 1px 2px)" should not set the property value+Pass e.style['clip-path'] = "unknown-box" should not set the property value+Pass e.style['clip-path'] = "path(\" \")" should not set the property value+Pass e.style['clip-path'] = "path(evenodd, \"\")" should not set the property value+Pass e.style['clip-path'] = "path(abc, \"m 20 0 h -100 z\")" should not set the property value+Pass e.style['clip-path'] = "path(nonzero)" should not set the property value+Pass e.style['clip-path'] = "path(\"m 20 0 h -100\", nonzero)" should not set the property value+Pass e.style['clip-path'] = "path(nonzero, 'M0 0, L100 0, L0 100, L 0 0');" should not set the property value+Pass e.style['clip-path'] = "xywh(0px)" should not set the property value+Pass e.style['clip-path'] = "xywh(0px 1%)" should not set the property value+Pass e.style['clip-path'] = "xywh(0px 1% 2em)" should not set the property value+Pass e.style['clip-path'] = "rect(0px)" should not set the property value+Pass e.style['clip-path'] = "rect(0px 1%)" should not set the property value+Pass e.style['clip-path'] = "rect(0px 1% auto)" should not set the property value\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-masking/parsing/clip-path-valid.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-masking/parsing/clip-path-valid.txtnew file mode 100644index 00000000000..ed2e7f69efa--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-masking/parsing/clip-path-valid.txt@@ -0,0 +1,60 @@+Harness status: OK++Found 54 tests++49 Pass+5 Fail+Pass e.style['clip-path'] = "none" should set the property value+Pass e.style['clip-path'] = "inset(100%)" should set the property value+Pass e.style['clip-path'] = "inset(0 1px)" should set the property value+Pass e.style['clip-path'] = "inset(0px 1px 2%)" should set the property value+Pass e.style['clip-path'] = "inset(0px 1px 2% 3em)" should set the property value+Pass e.style['clip-path'] = "inset(0px round 100%)" should set the property value+Pass e.style['clip-path'] = "inset(0px round 0 1px)" should set the property value+Pass e.style['clip-path'] = "inset(0px round 0px 1px 2%)" should set the property value+Pass e.style['clip-path'] = "inset(0px round 0px 1px 2% 3em)" should set the property value+Pass e.style['clip-path'] = "inset(10px round 20% / 0px 1px 2% 3em)" should set the property value+Pass e.style['clip-path'] = "circle()" should set the property value+Pass e.style['clip-path'] = "circle(1px)" should set the property value+Pass e.style['clip-path'] = "circle(closest-side)" should set the property value+Pass e.style['clip-path'] = "circle(at 10% 20%)" should set the property value+Pass e.style['clip-path'] = "circle(farthest-side at center top)" should set the property value+Pass e.style['clip-path'] = "circle(4% at top right)" should set the property value+Pass e.style['clip-path'] = "ellipse()" should set the property value+Pass e.style['clip-path'] = "ellipse(1px closest-side)" should set the property value+Pass e.style['clip-path'] = "ellipse(at 10% 20%)" should set the property value+Pass e.style['clip-path'] = "ellipse(closest-side closest-side at 10% 20%)" should set the property value+Pass e.style['clip-path'] = "ellipse(farthest-side 4% at bottom left)" should set the property value+Pass e.style['clip-path'] = "polygon(1% 2%)" should set the property value+Pass e.style['clip-path'] = "polygon(nonzero, 1px 2px, 3em 4em)" should set the property value+Pass e.style['clip-path'] = "polygon(evenodd, 1px 2px, 3em 4em, 5pt 6%)" should set the property value+Fail e.style['clip-path'] = "polygon(round 1px, 1% 2%)" should set the property value+Fail e.style['clip-path'] = "polygon(round 0px, 1px 2px, 3px 4px)" should set the property value+Fail e.style['clip-path'] = "polygon(nonzero round 1px, 1px 2px, 3em 4em)" should set the property value+Fail e.style['clip-path'] = "polygon(evenodd round 1px, 1px 2px, 3em 4em, 5pt 6%)" should set the property value+Fail e.style['clip-path'] = "polygon(round calc(1em + 2px), 1px 2px, 3px 4px)" should set the property value+Pass e.style['clip-path'] = "path(\"m 20 0 h -100\")" should set the property value+Pass e.style['clip-path'] = "path(evenodd, \"M 20 20 h 60 v 60 h -60 Z M 30 30 h 40 v 40 h -40 Z\")" should set the property value+Pass e.style['clip-path'] = "path(nonzero, \"M20,20h60 v60 h-60z M30,30 h40 v40 h-40z\")" should set the property value+Pass e.style['clip-path'] = "xywh(0 1% 2px 3em)" should set the property value+Pass e.style['clip-path'] = "xywh(0px 1% 2px 3em round 0)" should set the property value+Pass e.style['clip-path'] = "xywh(0px 1% 2px 3em round 0 1px)" should set the property value+Pass e.style['clip-path'] = "xywh(0px 1% 2px 3em round 0px 1px 2%)" should set the property value+Pass e.style['clip-path'] = "xywh(0px 1% 2px 3em round 0px 1px 2% 3em)" should set the property value+Pass e.style['clip-path'] = "rect(0 100% 200px 4em)" should set the property value+Pass e.style['clip-path'] = "rect(auto auto auto auto)" should set the property value+Pass e.style['clip-path'] = "rect(0px 100% auto 4em round 0)" should set the property value+Pass e.style['clip-path'] = "rect(0px 100% auto 4em round 0 1px)" should set the property value+Pass e.style['clip-path'] = "rect(0px 100% auto 4em round 0px 1px 2%)" should set the property value+Pass e.style['clip-path'] = "rect(0px 100% auto 4em round 0px 1px 2% 3em)" should set the property value+Pass e.style['clip-path'] = "border-box" should set the property value+Pass e.style['clip-path'] = "padding-box" should set the property value+Pass e.style['clip-path'] = "content-box" should set the property value+Pass e.style['clip-path'] = "margin-box" should set the property value+Pass e.style['clip-path'] = "fill-box" should set the property value+Pass e.style['clip-path'] = "stroke-box" should set the property value+Pass e.style['clip-path'] = "view-box" should set the property value+Pass e.style['clip-path'] = "circle(7% at 8% 9%) border-box" should set the property value+Pass e.style['clip-path'] = "border-box circle(7% at 8% 9%)" should set the property value+Pass e.style['clip-path'] = "url(https://example.com/)" should set the property value+Pass e.style['clip-path'] = "url(\"https://example.com/\")" should set the property value\ No newline at end of filediff --git a/Tests/LibWeb/Text/input/css/clip-path-src-function.html b/Tests/LibWeb/Text/input/css/clip-path-src-function.htmlnew file mode 100644index 00000000000..47e3f21b368--- /dev/null+++ b/Tests/LibWeb/Text/input/css/clip-path-src-function.html@@ -0,0 +1,13 @@+<!doctype html>+<div id="target"></div>+<script src="../include.js"></script>+<script>+ test(() => {+ println(`supports src(): ${CSS.supports("clip-path", 'src("#clip")')}`);+ println(`supports url(): ${CSS.supports("clip-path", 'url("#clip")')}`);+ const target = document.getElementById("target");+ target.style.clipPath = 'src("#clip")';+ println(`specified: ${target.style.clipPath}`);+ println(`computed: ${getComputedStyle(target).clipPath}`);+ });+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-masking/parsing/clip-path-computed.html b/Tests/LibWeb/Text/input/wpt-import/css/css-masking/parsing/clip-path-computed.htmlnew file mode 100644index 00000000000..0b5e62c3f48--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-masking/parsing/clip-path-computed.html@@ -0,0 +1,64 @@+<!DOCTYPE html>+<html>+<head>+<meta charset="utf-8">+<title>CSS Shapes Module Level 1: getComputedStyle().clipPath</title>+<link rel="help" href="https://drafts.csswg.org/css-shapes/#clip-path-property">+<meta name="assert" content="clip-path computed value is as specified.">+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../css/support/computed-testcommon.js"></script>+</head>+<body>+<style>+ #target {+ font-size: 40px;+ }+</style>+<div id="target"></div>+<script>+test_computed_value("clip-path", "circle(calc(10px + 0.5em) at -50% 50%)", "circle(30px at -50% 50%)");+test_computed_value("clip-path", "circle(calc(10px - 0.5em) at 50% -50%)", "circle(0px at 50% -50%)");+test_computed_value("clip-path", "ellipse(at 50% 50%)");+test_computed_value("clip-path", "ellipse(60% closest-side at 50% 50%)");++test_computed_value(+ "clip-path",+ "polygon(round 1em, 1px 2px, 3em 4em)",+ "polygon(round 40px, 1px 2px, 120px 160px)");+test_computed_value(+ "clip-path",+ "polygon(evenodd round 6pt, 1px 2px, 3em 4em, 6pt 6%)",+ "polygon(evenodd round 8px, 1px 2px, 120px 160px, 8px 6%)");+test_computed_value(+ "clip-path",+ "polygon(round 0px, 1px 2px, 3px 4px)",+ "polygon(1px 2px, 3px 4px)");+test_computed_value(+ "clip-path",+ "polygon(round calc(1em + 2px), 1px 2px, 3px 4px)",+ "polygon(round 42px, 1px 2px, 3px 4px)");++// All <basic-shape-rect> functions compute to the equivalent inset() function.+// Given "xywh(x y w h)", the equivalent function is+// "inset(y calc(100% - x - w) calc(100% - y - h) x)".+// https://drafts.csswg.org/css-shapes-1/#basic-shape-computed-values+// https://github.com/w3c/csswg-drafts/issues/9053+test_computed_value("clip-path", "xywh(0 1% 2px 0.5em)", "inset(1% calc(100% - 2px) calc(99% - 20px) 0px)");+test_computed_value("clip-path", "xywh(0px 1% 2px 0.5em round 0)", "inset(1% calc(100% - 2px) calc(99% - 20px) 0px)");+test_computed_value("clip-path", "xywh(0px 1% 2px 3% round 0 1px)", "inset(1% calc(100% - 2px) 96% 0px round 0px 1px)");+test_computed_value("clip-path", "xywh(0px 1% 2px 3% round 0px 1px 2em)", "inset(1% calc(100% - 2px) 96% 0px round 0px 1px 80px)");+test_computed_value("clip-path", "xywh(0px 1% 2px 3% round 0px 1px 2% 3px)", "inset(1% calc(100% - 2px) 96% 0px round 0px 1px 2% 3px)");+test_computed_value("clip-path", "xywh(calc(0px) calc(1px + 1%) calc(2px + 2%) calc(3px + 3%))", "inset(calc(1% + 1px) calc(98% - 2px) calc(96% - 4px) 0px)");+// Given "rect(t r b l)", the equivalent function is+// "inset(t calc(100% - r) calc(100% - b) l)".+test_computed_value("clip-path", "rect(auto auto auto auto)", "inset(0%)");+test_computed_value("clip-path", "rect(0 1% 2px 0.5em)", "inset(0px 99% calc(100% - 2px) 20px)");+test_computed_value("clip-path", "rect(0px 1% auto 0.5em round 0)", "inset(0px 99% 0% 20px)");+test_computed_value("clip-path", "rect(0px 1% auto 3% round 0 1px)", "inset(0px 99% 0% 3% round 0px 1px)");+test_computed_value("clip-path", "rect(0px 1% auto 3% round 0px 1px 2em)", "inset(0px 99% 0% 3% round 0px 1px 80px)");+test_computed_value("clip-path", "rect(0px 1% auto 3% round 0px 1px 2% 3px)", "inset(0px 99% 0% 3% round 0px 1px 2% 3px)");+test_computed_value("clip-path", "rect(calc(0px) calc(1px + 1%) calc(2px + 2%) calc(3px + 3%))", "inset(0px calc(99% - 1px) calc(98% - 2px) calc(3% + 3px))");+</script>+</body>+</html>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-masking/parsing/clip-path-invalid.html b/Tests/LibWeb/Text/input/wpt-import/css/css-masking/parsing/clip-path-invalid.htmlnew file mode 100644index 00000000000..bc5e7d9e9d2--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-masking/parsing/clip-path-invalid.html@@ -0,0 +1,74 @@+<!DOCTYPE html>+<html>+<head>+<meta charset="utf-8">+<title>CSS Masking Module Level 1: parsing clip-path with invalid values</title>+<link rel="author" title="Eric Willigers" href="mailto:[email protected]">+<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">+<meta name="assert" content="clip-path supports only the grammar '<clip-source> | [ <basic-shape> || <geometry-box> ] | none'.">+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../css/support/parsing-testcommon.js"></script>+</head>+<body>+<script>+test_invalid_value("clip-path", "auto");+test_invalid_value("clip-path", "ray(0deg)");++test_invalid_value("clip-path", "inset()");+test_invalid_value("clip-path", "inset(123)");+test_invalid_value("clip-path", "inset(1% 2% 3% 4% 5%)");+test_invalid_value("clip-path", "inset(round 0)");+test_invalid_value("clip-path", "inset(0px round)");+test_invalid_value("clip-path", "inset(0px round 123)");+test_invalid_value("clip-path", "inset(0px round 1% 2% 3% 4% 5%)");+test_invalid_value("clip-path", "inset(0px round / 1px)");+test_invalid_value("clip-path", "inset(10px round -20px)");+test_invalid_value("clip-path", "inset(30% round -40%)");++test_invalid_value("clip-path", "circle(123)");+test_invalid_value("clip-path", "circle(at)");+test_invalid_value("clip-path", "circle(10% 20%)");+test_invalid_value("clip-path", "circle(-10px at 20px 30px)");+test_invalid_value("clip-path", "circle(-10% at 20% 30%)");+test_invalid_value("clip-path", "circle(1% 2% at 0% 100%)");++test_invalid_value("clip-path", "ellipse(farthest-side at)");+test_invalid_value("clip-path", "ellipse(1% 2% top right)");+test_invalid_value("clip-path", "ellipse(3%)");+test_invalid_value("clip-path", "ellipse(3% at 100% 0%)");+test_invalid_value("clip-path", "ellipse(closest-side)");+test_invalid_value("clip-path", "ellipse(farthest-side at 100% 0%)");+test_invalid_value("clip-path", "ellipse(10% -20% at 30% 40%)");+test_invalid_value("clip-path", "ellipse(-50px 60px at 70% 80%)");++test_invalid_value("clip-path", "polygon(1%)");+test_invalid_value("clip-path", "polygon(round, 1px 2px)");+test_invalid_value("clip-path", "polygon(round -1px, 1px 2px)");+test_invalid_value("clip-path", "polygon(round 1%, 1px 2px)");+test_invalid_value("clip-path", "polygon(round 45deg, 1px 2px)");+test_invalid_value("clip-path", "polygon(round 1px 1px 2px)");+test_invalid_value("clip-path", "polygon(1px 2px, round 1px)");+test_invalid_value("clip-path", "polygon(round 1px round 2px, 1px 2px)");+test_invalid_value("clip-path", "polygon(round 1px nonzero, 1px 2px)");++test_invalid_value("clip-path", "unknown-box");++test_invalid_value("clip-path", 'path(" ")');+test_invalid_value("clip-path", 'path(evenodd, "")');+test_invalid_value("clip-path", 'path(abc, "m 20 0 h -100 z")');+test_invalid_value("clip-path", 'path(nonzero)');+test_invalid_value("clip-path", 'path("m 20 0 h -100", nonzero)');+test_invalid_value("clip-path", "path(nonzero, 'M0 0, L100 0, L0 100, L 0 0');");++test_invalid_value("clip-path", "xywh(0px)");+test_invalid_value("clip-path", "xywh(0px 1%)");+test_invalid_value("clip-path", "xywh(0px 1% 2em)");++test_invalid_value("clip-path", "rect(0px)");+test_invalid_value("clip-path", "rect(0px 1%)");+test_invalid_value("clip-path", "rect(0px 1% auto)");++</script>+</body>+</html>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-masking/parsing/clip-path-valid.html b/Tests/LibWeb/Text/input/wpt-import/css/css-masking/parsing/clip-path-valid.htmlnew file mode 100644index 00000000000..811a0b23bb2--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-masking/parsing/clip-path-valid.html@@ -0,0 +1,101 @@+<!DOCTYPE html>+<html>+<head>+<meta charset="utf-8">+<title>CSS Masking Module Level 1: parsing clip-path with valid values</title>+<link rel="author" title="Eric Willigers" href="mailto:[email protected]">+<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">+<meta name="assert" content="clip-path supports the full grammar '<clip-source> | [ <basic-shape> || <geometry-box> ] | none'.">+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../css/support/parsing-testcommon.js"></script>+</head>+<body>+<script>+test_valid_value("clip-path", "none");++// <basic-shape>+test_valid_value("clip-path", "inset(100%)");+test_valid_value("clip-path", "inset(0 1px)", "inset(0px 1px)");+test_valid_value("clip-path", "inset(0px 1px 2%)");+test_valid_value("clip-path", "inset(0px 1px 2% 3em)");+test_valid_value("clip-path", "inset(0px round 100%)");+test_valid_value("clip-path", "inset(0px round 0 1px)", "inset(0px round 0px 1px)");+test_valid_value("clip-path", "inset(0px round 0px 1px 2%)");+test_valid_value("clip-path", "inset(0px round 0px 1px 2% 3em)");+test_valid_value("clip-path", "inset(10px round 20% / 0px 1px 2% 3em)");++test_valid_value("clip-path", "circle()");+test_valid_value("clip-path", "circle(1px)", "circle(1px)");+test_valid_value("clip-path", "circle(closest-side)", "circle()");+test_valid_value("clip-path", "circle(at 10% 20%)");+test_valid_value("clip-path", "circle(farthest-side at center top)");+test_valid_value("clip-path", "circle(4% at top right)", "circle(4% at right top)");++test_valid_value("clip-path", "ellipse()");+test_valid_value("clip-path", "ellipse(1px closest-side)");+test_valid_value("clip-path", "ellipse(at 10% 20%)");+test_valid_value("clip-path", "ellipse(closest-side closest-side at 10% 20%)", "ellipse(at 10% 20%)");+test_valid_value("clip-path", "ellipse(farthest-side 4% at bottom left)", "ellipse(farthest-side 4% at left bottom)");++test_valid_value("clip-path", "polygon(1% 2%)");+test_valid_value("clip-path", "polygon(nonzero, 1px 2px, 3em 4em)", "polygon(1px 2px, 3em 4em)");+test_valid_value("clip-path", "polygon(evenodd, 1px 2px, 3em 4em, 5pt 6%)");+test_valid_value("clip-path", "polygon(round 1px, 1% 2%)");+test_valid_value(+ "clip-path",+ "polygon(round 0px, 1px 2px, 3px 4px)",+ "polygon(1px 2px, 3px 4px)");+test_valid_value(+ "clip-path",+ "polygon(nonzero round 1px, 1px 2px, 3em 4em)",+ "polygon(round 1px, 1px 2px, 3em 4em)");+test_valid_value(+ "clip-path",+ "polygon(evenodd round 1px, 1px 2px, 3em 4em, 5pt 6%)");+test_valid_value(+ "clip-path",+ "polygon(round calc(1em + 2px), 1px 2px, 3px 4px)");++// New supported shape in [css-shapes-2]+// https://drafts.csswg.org/css-shapes-2/#supported-basic-shapes+test_valid_value("clip-path", 'path("m 20 0 h -100")');+test_valid_value("clip-path", 'path(evenodd, "M 20 20 h 60 v 60 h -60 Z M 30 30 h 40 v 40 h -40 Z")');+test_valid_value("clip-path",+ 'path(nonzero, "M20,20h60 v60 h-60z M30,30 h40 v40 h-40z")',+ 'path("M 20 20 h 60 v 60 h -60 Z M 30 30 h 40 v 40 h -40 Z")');++test_valid_value("clip-path", "xywh(0 1% 2px 3em)", "xywh(0px 1% 2px 3em)");+test_valid_value("clip-path", "xywh(0px 1% 2px 3em round 0)", "xywh(0px 1% 2px 3em)");+test_valid_value("clip-path", "xywh(0px 1% 2px 3em round 0 1px)", "xywh(0px 1% 2px 3em round 0px 1px)");+test_valid_value("clip-path", "xywh(0px 1% 2px 3em round 0px 1px 2%)");+test_valid_value("clip-path", "xywh(0px 1% 2px 3em round 0px 1px 2% 3em)");++test_valid_value("clip-path", "rect(0 100% 200px 4em)", "rect(0px 100% 200px 4em)");+test_valid_value("clip-path", "rect(auto auto auto auto)");+test_valid_value("clip-path", "rect(0px 100% auto 4em round 0)", "rect(0px 100% auto 4em)");+test_valid_value("clip-path", "rect(0px 100% auto 4em round 0 1px)", "rect(0px 100% auto 4em round 0px 1px)");+test_valid_value("clip-path", "rect(0px 100% auto 4em round 0px 1px 2%)");+test_valid_value("clip-path", "rect(0px 100% auto 4em round 0px 1px 2% 3em)");++// <geometry-box>+test_valid_value("clip-path", "border-box");+test_valid_value("clip-path", "padding-box");+test_valid_value("clip-path", "content-box");+test_valid_value("clip-path", "margin-box");+test_valid_value("clip-path", "fill-box");+test_valid_value("clip-path", "stroke-box");+test_valid_value("clip-path", "view-box");++// <basic-shape> <geometry-box>+test_valid_value("clip-path", "circle(7% at 8% 9%) border-box", "circle(7% at 8% 9%)");++// <geometry-box> <basic-shape>+test_valid_value("clip-path", "border-box circle(7% at 8% 9%)", "circle(7% at 8% 9%)");++// <clip-source>+test_valid_value("clip-path", "url(https://example.com/)", ["url(https://example.com/)", "url(\"https://example.com/\")"]);+test_valid_value("clip-path", "url(\"https://example.com/\")", ["url(https://example.com/)", "url(\"https://example.com/\")"]);+</script>+</body>+</html>