LibWeb: Parse the CSS scrollbar-width property

This commit is contained in:
Aliaksandr Kalenik 2024-02-27 09:37:18 +01:00 committed by Tim Flynn
commit 8d9e20cb03
Notes: sideshowbarker 2024-07-17 05:00:08 +09:00
7 changed files with 37 additions and 0 deletions

View file

@ -1110,4 +1110,10 @@ QuotesData StyleProperties::quotes() const
return InitialValues::quotes();
}
Optional<CSS::ScrollbarWidth> StyleProperties::scrollbar_width() const
{
auto value = property(CSS::PropertyID::ScrollbarWidth);
return value_id_to_scrollbar_width(value->to_identifier());
}
}