LibWeb/CSS: Implement mix-blend-mode

This adds support for the `mix-blend-mode` CSS property.
This commit is contained in:
Glenn Skrzypczak 2025-01-22 09:50:49 +01:00 committed by Sam Atkins
commit 0fe30886f5
Notes: github-actions[bot] 2025-02-05 11:28:01 +00:00
24 changed files with 311 additions and 57 deletions

View file

@ -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);