diff --git a/Libraries/LibWeb/CSS/Keywords.json b/Libraries/LibWeb/CSS/Keywords.json index 4b3f79b37b1..60b125573a5 100644 --- a/Libraries/LibWeb/CSS/Keywords.json +++ b/Libraries/LibWeb/CSS/Keywords.json @@ -342,6 +342,7 @@ "ne-resize", "nearest", "nesw-resize", + "no-clip", "no-close-quote", "no-common-ligatures", "no-contextual", diff --git a/Libraries/LibWeb/CSS/Parser/PropertyParsing.cpp b/Libraries/LibWeb/CSS/Parser/PropertyParsing.cpp index 9983335cf72..47d77d9d0bd 100644 --- a/Libraries/LibWeb/CSS/Parser/PropertyParsing.cpp +++ b/Libraries/LibWeb/CSS/Parser/PropertyParsing.cpp @@ -664,6 +664,7 @@ Parser::ParseErrorOr> Parser::parse_css_value if (auto parsed_value = parse_math_depth_value(tokens); parsed_value && !tokens.has_next_token()) return parsed_value.release_nonnull(); return ParseError::SyntaxError; + case PropertyID::MaskClip: case PropertyID::MaskComposite: case PropertyID::MaskMode: case PropertyID::MaskOrigin: diff --git a/Libraries/LibWeb/CSS/Properties.json b/Libraries/LibWeb/CSS/Properties.json index 0d926fae8be..22dd2ff092d 100644 --- a/Libraries/LibWeb/CSS/Properties.json +++ b/Libraries/LibWeb/CSS/Properties.json @@ -2383,6 +2383,18 @@ "mask-image" ] }, + "mask-clip": { + "animation-type": "discrete", + "inherited": false, + "affects-layout": false, + "valid-types": [ + "coord-box" + ], + "valid-identifiers": [ + "no-clip" + ], + "initial": "border-box" + }, "mask-composite": { "animation-type": "discrete", "inherited": false, diff --git a/Tests/LibWeb/Text/expected/css/CSSStyleDeclaration-has-indexed-property-getter.txt b/Tests/LibWeb/Text/expected/css/CSSStyleDeclaration-has-indexed-property-getter.txt index 2fc5fe0c05f..3b7a53d2457 100644 --- a/Tests/LibWeb/Text/expected/css/CSSStyleDeclaration-has-indexed-property-getter.txt +++ b/Tests/LibWeb/Text/expected/css/CSSStyleDeclaration-has-indexed-property-getter.txt @@ -186,6 +186,7 @@ All properties associated with getComputedStyle(document.body): "margin-left", "margin-right", "margin-top", + "mask-clip", "mask-composite", "mask-image", "mask-mode", diff --git a/Tests/LibWeb/Text/expected/css/CSSStyleProperties-all-supported-properties-and-default-values.txt b/Tests/LibWeb/Text/expected/css/CSSStyleProperties-all-supported-properties-and-default-values.txt index 57d367eb2e9..61aae1df5d8 100644 --- a/Tests/LibWeb/Text/expected/css/CSSStyleProperties-all-supported-properties-and-default-values.txt +++ b/Tests/LibWeb/Text/expected/css/CSSStyleProperties-all-supported-properties-and-default-values.txt @@ -525,6 +525,8 @@ All supported properties and their default values exposed from CSSStylePropertie 'marginTop': '8px' 'margin-top': '8px' 'mask': 'none' +'maskClip': 'border-box' +'mask-clip': 'border-box' 'maskComposite': 'add' 'mask-composite': 'add' 'maskImage': 'none' diff --git a/Tests/LibWeb/Text/expected/css/getComputedStyle-print-all.txt b/Tests/LibWeb/Text/expected/css/getComputedStyle-print-all.txt index 7c4b9598d5e..d2a8575308c 100644 --- a/Tests/LibWeb/Text/expected/css/getComputedStyle-print-all.txt +++ b/Tests/LibWeb/Text/expected/css/getComputedStyle-print-all.txt @@ -184,6 +184,7 @@ margin-inline-start: 8px margin-left: 8px margin-right: 8px margin-top: 8px +mask-clip: border-box mask-composite: add mask-image: none mask-mode: match-source diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-cascade/all-prop-revert-layer.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-cascade/all-prop-revert-layer.txt index c329f299c3d..db501826fb8 100644 --- a/Tests/LibWeb/Text/expected/wpt-import/css/css-cascade/all-prop-revert-layer.txt +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-cascade/all-prop-revert-layer.txt @@ -1,8 +1,8 @@ Harness status: OK -Found 253 tests +Found 254 tests -246 Pass +247 Pass 7 Fail Pass accent-color Pass border-collapse @@ -185,6 +185,7 @@ Pass margin-inline-start Pass margin-left Pass margin-right Pass margin-top +Pass mask-clip Pass mask-composite Pass mask-image Pass mask-mode