mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
LibWeb: Implement mask-type
CSS property
This property allows specifying if a mask is an alpha or luminance mask. See: https://drafts.fxtf.org/css-masking/#the-mask-type
This commit is contained in:
parent
b0d75ef096
commit
479451498b
9 changed files with 43 additions and 2 deletions
|
@ -1015,6 +1015,12 @@ Optional<CSS::TableLayout> StyleProperties::table_layout() const
|
|||
return value_id_to_table_layout(value->to_identifier());
|
||||
}
|
||||
|
||||
Optional<CSS::MaskType> StyleProperties::mask_type() const
|
||||
{
|
||||
auto value = property(CSS::PropertyID::MaskType);
|
||||
return value_id_to_mask_type(value->to_identifier());
|
||||
}
|
||||
|
||||
Color StyleProperties::stop_color() const
|
||||
{
|
||||
auto value = property(CSS::PropertyID::StopColor);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue