mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 05:52:53 +00:00
LibWeb: Parse the CSS scrollbar-width property
This commit is contained in:
parent
c74fc4c171
commit
8d9e20cb03
Notes:
sideshowbarker
2024-07-17 05:00:08 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 8d9e20cb03
Pull-request: https://github.com/SerenityOS/serenity/pull/23381
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/trflynn89 ✅
7 changed files with 37 additions and 0 deletions
|
@ -835,6 +835,9 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& computed_style)
|
|||
|
||||
computed_values.set_object_position(computed_style.object_position());
|
||||
|
||||
if (auto scrollbar_width = computed_style.scrollbar_width(); scrollbar_width.has_value())
|
||||
computed_values.set_scrollbar_width(scrollbar_width.value());
|
||||
|
||||
propagate_style_to_anonymous_wrappers();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue