LibWeb/CSS: Parse mask-clip property

This commit is contained in:
InvalidUsernameException 2025-07-18 20:36:12 +02:00 committed by Sam Atkins
commit f953196cb4
Notes: github-actions[bot] 2025-08-06 22:10:35 +00:00
7 changed files with 21 additions and 2 deletions

View file

@ -342,6 +342,7 @@
"ne-resize", "ne-resize",
"nearest", "nearest",
"nesw-resize", "nesw-resize",
"no-clip",
"no-close-quote", "no-close-quote",
"no-common-ligatures", "no-common-ligatures",
"no-contextual", "no-contextual",

View file

@ -664,6 +664,7 @@ Parser::ParseErrorOr<NonnullRefPtr<CSSStyleValue const>> Parser::parse_css_value
if (auto parsed_value = parse_math_depth_value(tokens); parsed_value && !tokens.has_next_token()) if (auto parsed_value = parse_math_depth_value(tokens); parsed_value && !tokens.has_next_token())
return parsed_value.release_nonnull(); return parsed_value.release_nonnull();
return ParseError::SyntaxError; return ParseError::SyntaxError;
case PropertyID::MaskClip:
case PropertyID::MaskComposite: case PropertyID::MaskComposite:
case PropertyID::MaskMode: case PropertyID::MaskMode:
case PropertyID::MaskOrigin: case PropertyID::MaskOrigin:

View file

@ -2383,6 +2383,18 @@
"mask-image" "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": { "mask-composite": {
"animation-type": "discrete", "animation-type": "discrete",
"inherited": false, "inherited": false,

View file

@ -186,6 +186,7 @@ All properties associated with getComputedStyle(document.body):
"margin-left", "margin-left",
"margin-right", "margin-right",
"margin-top", "margin-top",
"mask-clip",
"mask-composite", "mask-composite",
"mask-image", "mask-image",
"mask-mode", "mask-mode",

View file

@ -525,6 +525,8 @@ All supported properties and their default values exposed from CSSStylePropertie
'marginTop': '8px' 'marginTop': '8px'
'margin-top': '8px' 'margin-top': '8px'
'mask': 'none' 'mask': 'none'
'maskClip': 'border-box'
'mask-clip': 'border-box'
'maskComposite': 'add' 'maskComposite': 'add'
'mask-composite': 'add' 'mask-composite': 'add'
'maskImage': 'none' 'maskImage': 'none'

View file

@ -184,6 +184,7 @@ margin-inline-start: 8px
margin-left: 8px margin-left: 8px
margin-right: 8px margin-right: 8px
margin-top: 8px margin-top: 8px
mask-clip: border-box
mask-composite: add mask-composite: add
mask-image: none mask-image: none
mask-mode: match-source mask-mode: match-source

View file

@ -1,8 +1,8 @@
Harness status: OK Harness status: OK
Found 253 tests Found 254 tests
246 Pass 247 Pass
7 Fail 7 Fail
Pass accent-color Pass accent-color
Pass border-collapse Pass border-collapse
@ -185,6 +185,7 @@ Pass margin-inline-start
Pass margin-left Pass margin-left
Pass margin-right Pass margin-right
Pass margin-top Pass margin-top
Pass mask-clip
Pass mask-composite Pass mask-composite
Pass mask-image Pass mask-image
Pass mask-mode Pass mask-mode