mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibWeb/CSS: Implement mix-blend-mode
This adds support for the `mix-blend-mode` CSS property.
This commit is contained in:
parent
8575bddfe6
commit
0fe30886f5
Notes:
github-actions[bot]
2025-02-05 11:28:01 +00:00
Author: https://github.com/skyz1
Commit: 0fe30886f5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3267
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/konradekk
24 changed files with 311 additions and 57 deletions
|
@ -1433,6 +1433,12 @@ CSS::Containment ComputedProperties::contain() const
|
|||
return containment;
|
||||
}
|
||||
|
||||
Optional<CSS::MixBlendMode> ComputedProperties::mix_blend_mode() const
|
||||
{
|
||||
auto const& value = property(CSS::PropertyID::MixBlendMode);
|
||||
return keyword_to_mix_blend_mode(value.to_keyword());
|
||||
}
|
||||
|
||||
Optional<CSS::MaskType> ComputedProperties::mask_type() const
|
||||
{
|
||||
auto const& value = property(CSS::PropertyID::MaskType);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue