mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 05:22:24 +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",
|
||||
"nearest",
|
||||
"nesw-resize",
|
||||
"no-clip",
|
||||
"no-close-quote",
|
||||
"no-common-ligatures",
|
||||
"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())
|
||||
return parsed_value.release_nonnull();
|
||||
return ParseError::SyntaxError;
|
||||
case PropertyID::MaskClip:
|
||||
case PropertyID::MaskComposite:
|
||||
case PropertyID::MaskMode:
|
||||
case PropertyID::MaskOrigin:
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue