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",
"nearest",
"nesw-resize",
"no-clip",
"no-close-quote",
"no-common-ligatures",
"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())
return parsed_value.release_nonnull();
return ParseError::SyntaxError;
case PropertyID::MaskClip:
case PropertyID::MaskComposite:
case PropertyID::MaskMode:
case PropertyID::MaskOrigin:

View file

@ -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,

View file

@ -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",

View file

@ -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'

View file

@ -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

View file

@ -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