mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 05:07:35 +00:00
LibWeb/CSS: Parse mask-mode property
This commit is contained in:
parent
22d7a58998
commit
d022eea9fc
Notes:
github-actions[bot]
2025-08-06 22:11:13 +00:00
Author: https://github.com/InvalidUsernameException
Commit: d022eea9fc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5511
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/Calme1709
8 changed files with 23 additions and 2 deletions
|
@ -491,6 +491,11 @@
|
|||
"luminance",
|
||||
"alpha"
|
||||
],
|
||||
"masking-mode": [
|
||||
"alpha",
|
||||
"luminance",
|
||||
"match-source"
|
||||
],
|
||||
"math-shift": [
|
||||
"normal",
|
||||
"compact"
|
||||
|
|
|
@ -319,6 +319,7 @@
|
|||
"mark",
|
||||
"marktext",
|
||||
"match-parent",
|
||||
"match-source",
|
||||
"math",
|
||||
"math-auto",
|
||||
"max-content",
|
||||
|
|
|
@ -665,6 +665,7 @@ Parser::ParseErrorOr<NonnullRefPtr<CSSStyleValue const>> Parser::parse_css_value
|
|||
return parsed_value.release_nonnull();
|
||||
return ParseError::SyntaxError;
|
||||
case PropertyID::MaskComposite:
|
||||
case PropertyID::MaskMode:
|
||||
if (auto parsed_value = parse_simple_comma_separated_value_list(property_id, tokens))
|
||||
return parsed_value.release_nonnull();
|
||||
return ParseError::SyntaxError;
|
||||
|
|
|
@ -2406,6 +2406,15 @@
|
|||
],
|
||||
"initial": "none"
|
||||
},
|
||||
"mask-mode": {
|
||||
"animation-type": "discrete",
|
||||
"inherited": false,
|
||||
"affects-layout": false,
|
||||
"valid-types": [
|
||||
"masking-mode"
|
||||
],
|
||||
"initial": "match-source"
|
||||
},
|
||||
"mask-type": {
|
||||
"animation-type": "discrete",
|
||||
"inherited": false,
|
||||
|
|
|
@ -188,6 +188,7 @@ All properties associated with getComputedStyle(document.body):
|
|||
"margin-top",
|
||||
"mask-composite",
|
||||
"mask-image",
|
||||
"mask-mode",
|
||||
"mask-type",
|
||||
"max-block-size",
|
||||
"max-height",
|
||||
|
|
|
@ -529,6 +529,8 @@ All supported properties and their default values exposed from CSSStylePropertie
|
|||
'mask-composite': 'add'
|
||||
'maskImage': 'none'
|
||||
'mask-image': 'none'
|
||||
'maskMode': 'match-source'
|
||||
'mask-mode': 'match-source'
|
||||
'maskType': 'luminance'
|
||||
'mask-type': 'luminance'
|
||||
'mathDepth': '0'
|
||||
|
|
|
@ -186,6 +186,7 @@ margin-right: 8px
|
|||
margin-top: 8px
|
||||
mask-composite: add
|
||||
mask-image: none
|
||||
mask-mode: match-source
|
||||
mask-type: luminance
|
||||
max-block-size: none
|
||||
max-height: none
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
Harness status: OK
|
||||
|
||||
Found 249 tests
|
||||
Found 250 tests
|
||||
|
||||
242 Pass
|
||||
243 Pass
|
||||
7 Fail
|
||||
Pass accent-color
|
||||
Pass border-collapse
|
||||
|
@ -187,6 +187,7 @@ Pass margin-right
|
|||
Pass margin-top
|
||||
Pass mask-composite
|
||||
Pass mask-image
|
||||
Pass mask-mode
|
||||
Pass mask-type
|
||||
Pass max-block-size
|
||||
Pass max-height
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue