mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 09:06:08 +00:00
LibWeb/CSS: Parse mask-origin property
This commit is contained in:
parent
866e12f688
commit
eea6792cf7
Notes:
github-actions[bot]
2025-08-06 22:10:41 +00:00
Author: https://github.com/InvalidUsernameException
Commit: eea6792cf7
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 25 additions and 2 deletions
|
@ -157,6 +157,14 @@
|
||||||
"auto",
|
"auto",
|
||||||
"hidden"
|
"hidden"
|
||||||
],
|
],
|
||||||
|
"coord-box": [
|
||||||
|
"content-box",
|
||||||
|
"padding-box",
|
||||||
|
"border-box",
|
||||||
|
"fill-box",
|
||||||
|
"stroke-box",
|
||||||
|
"view-box"
|
||||||
|
],
|
||||||
"counter-style-name-keyword": [
|
"counter-style-name-keyword": [
|
||||||
"circle",
|
"circle",
|
||||||
"decimal",
|
"decimal",
|
||||||
|
|
|
@ -666,6 +666,7 @@ Parser::ParseErrorOr<NonnullRefPtr<CSSStyleValue const>> Parser::parse_css_value
|
||||||
return ParseError::SyntaxError;
|
return ParseError::SyntaxError;
|
||||||
case PropertyID::MaskComposite:
|
case PropertyID::MaskComposite:
|
||||||
case PropertyID::MaskMode:
|
case PropertyID::MaskMode:
|
||||||
|
case PropertyID::MaskOrigin:
|
||||||
if (auto parsed_value = parse_simple_comma_separated_value_list(property_id, tokens))
|
if (auto parsed_value = parse_simple_comma_separated_value_list(property_id, tokens))
|
||||||
return parsed_value.release_nonnull();
|
return parsed_value.release_nonnull();
|
||||||
return ParseError::SyntaxError;
|
return ParseError::SyntaxError;
|
||||||
|
|
|
@ -2415,6 +2415,15 @@
|
||||||
],
|
],
|
||||||
"initial": "match-source"
|
"initial": "match-source"
|
||||||
},
|
},
|
||||||
|
"mask-origin": {
|
||||||
|
"animation-type": "discrete",
|
||||||
|
"inherited": false,
|
||||||
|
"affects-layout": false,
|
||||||
|
"valid-types": [
|
||||||
|
"coord-box"
|
||||||
|
],
|
||||||
|
"initial": "border-box"
|
||||||
|
},
|
||||||
"mask-position": {
|
"mask-position": {
|
||||||
"animation-type": "repeatable-list",
|
"animation-type": "repeatable-list",
|
||||||
"affects-layout": false,
|
"affects-layout": false,
|
||||||
|
|
|
@ -189,6 +189,7 @@ All properties associated with getComputedStyle(document.body):
|
||||||
"mask-composite",
|
"mask-composite",
|
||||||
"mask-image",
|
"mask-image",
|
||||||
"mask-mode",
|
"mask-mode",
|
||||||
|
"mask-origin",
|
||||||
"mask-position",
|
"mask-position",
|
||||||
"mask-repeat",
|
"mask-repeat",
|
||||||
"mask-size",
|
"mask-size",
|
||||||
|
|
|
@ -531,6 +531,8 @@ All supported properties and their default values exposed from CSSStylePropertie
|
||||||
'mask-image': 'none'
|
'mask-image': 'none'
|
||||||
'maskMode': 'match-source'
|
'maskMode': 'match-source'
|
||||||
'mask-mode': 'match-source'
|
'mask-mode': 'match-source'
|
||||||
|
'maskOrigin': 'border-box'
|
||||||
|
'mask-origin': 'border-box'
|
||||||
'maskPosition': '0% 0%'
|
'maskPosition': '0% 0%'
|
||||||
'mask-position': '0% 0%'
|
'mask-position': '0% 0%'
|
||||||
'maskRepeat': 'repeat'
|
'maskRepeat': 'repeat'
|
||||||
|
|
|
@ -187,6 +187,7 @@ margin-top: 8px
|
||||||
mask-composite: add
|
mask-composite: add
|
||||||
mask-image: none
|
mask-image: none
|
||||||
mask-mode: match-source
|
mask-mode: match-source
|
||||||
|
mask-origin: border-box
|
||||||
mask-position: 0% 0%
|
mask-position: 0% 0%
|
||||||
mask-repeat: repeat
|
mask-repeat: repeat
|
||||||
mask-size: auto
|
mask-size: auto
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
Harness status: OK
|
Harness status: OK
|
||||||
|
|
||||||
Found 252 tests
|
Found 253 tests
|
||||||
|
|
||||||
245 Pass
|
246 Pass
|
||||||
7 Fail
|
7 Fail
|
||||||
Pass accent-color
|
Pass accent-color
|
||||||
Pass border-collapse
|
Pass border-collapse
|
||||||
|
@ -188,6 +188,7 @@ Pass margin-top
|
||||||
Pass mask-composite
|
Pass mask-composite
|
||||||
Pass mask-image
|
Pass mask-image
|
||||||
Pass mask-mode
|
Pass mask-mode
|
||||||
|
Pass mask-origin
|
||||||
Pass mask-repeat
|
Pass mask-repeat
|
||||||
Pass mask-size
|
Pass mask-size
|
||||||
Pass mask-type
|
Pass mask-type
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue