LibWeb/CSS: Implement the scrollbar-color property

This allows the user to set the scrollbar thumb and track colors.
This commit is contained in:
Tim Ledbetter
2025-05-26 22:36:12 +01:00
committed by Alexander Kalenik
parent 285bc005cb
commit e2d0d8e2b9
Notes: github-actions[bot] 2025-06-01 22:18:57 +00:00
24 changed files with 212 additions and 10 deletions

View File

@@ -0,0 +1,18 @@
Harness status: OK
Found 13 tests
13 Pass
Pass e.style['scrollbar-color'] = "initial" should set the property value
Pass e.style['scrollbar-color'] = "inherit" should set the property value
Pass e.style['scrollbar-color'] = "unset" should set the property value
Pass e.style['scrollbar-color'] = "revert" should set the property value
Pass e.style['scrollbar-color'] = "auto" should set the property value
Pass e.style['scrollbar-color'] = "red green" should set the property value
Pass e.style['scrollbar-color'] = "#FF0000 #00FF00" should set the property value
Pass e.style['scrollbar-color'] = "currentcolor currentcolor" should set the property value
Pass e.style['scrollbar-color'] = "" should not set the property value
Pass e.style['scrollbar-color'] = "auto auto" should not set the property value
Pass e.style['scrollbar-color'] = "auto currentcolor" should not set the property value
Pass e.style['scrollbar-color'] = "red" should not set the property value
Pass e.style['scrollbar-color'] = "#FF0000" should not set the property value