mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 13:32:23 +00:00
LibWeb/CSS: Parse mask-clip property
This commit is contained in:
parent
eea6792cf7
commit
f953196cb4
Notes:
github-actions[bot]
2025-08-06 22:10:35 +00:00
Author: https://github.com/InvalidUsernameException
Commit: f953196cb4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5511
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/Calme1709
7 changed files with 21 additions and 2 deletions
|
@ -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",
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue