LibWeb: Implement mask-image CSS property support

Implemented by reusing AddMask display list item that was initially
added for `background-clip` property.

Progress on flashlight effect on https://null.com/games/athena-crisis
This commit is contained in:
Aliaksandr Kalenik 2024-11-16 03:25:48 +03:00 committed by Andreas Kling
commit 96a35767b6
Notes: github-actions[bot] 2024-11-18 21:59:52 +00:00
11 changed files with 149 additions and 58 deletions

View file

@ -1,6 +1,6 @@
All supported properties and their default values exposed from CSSStyleDeclaration from getComputedStyle:
'cssText': ''
'length': '201'
'length': '202'
'parentRule': 'null'
'cssFloat': 'none'
'WebkitAlignContent': 'normal'
@ -99,6 +99,9 @@ All supported properties and their default values exposed from CSSStyleDeclarati
'WebkitMask': 'none'
'webkitMask': 'none'
'-webkit-mask': 'none'
'WebkitMaskImage': 'none'
'webkitMaskImage': 'none'
'-webkit-mask-image': 'none'
'WebkitOrder': '0'
'webkitOrder': '0'
'-webkit-order': '0'
@ -403,6 +406,8 @@ All supported properties and their default values exposed from CSSStyleDeclarati
'marginTop': '8px'
'margin-top': '8px'
'mask': 'none'
'maskImage': 'none'
'mask-image': 'none'
'maskType': 'luminance'
'mask-type': 'luminance'
'mathDepth': '0'