mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +00:00
LibWeb: Plumb style/computed values for backdrop-filter
This commit is contained in:
parent
d1b99282d8
commit
ec4de1e07d
5 changed files with 53 additions and 0 deletions
|
@ -355,6 +355,14 @@ Optional<CSS::Appearance> StyleProperties::appearance() const
|
|||
return appearance;
|
||||
}
|
||||
|
||||
CSS::BackdropFilter StyleProperties::backdrop_filter() const
|
||||
{
|
||||
auto value = property(CSS::PropertyID::BackdropFilter);
|
||||
if (value->is_filter_value_list())
|
||||
return BackdropFilter(value->as_filter_value_list());
|
||||
return BackdropFilter::make_none();
|
||||
}
|
||||
|
||||
Optional<CSS::Position> StyleProperties::position() const
|
||||
{
|
||||
auto value = property(CSS::PropertyID::Position);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue