1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00

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
parent c74fc4c171
commit 8d9e20cb03
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());
}
}