LibWeb: Add scroll-behavior CSS property

To quote the spec:
"User agents may ignore this property."
So that is what we do.
This commit is contained in:
Psychpsyo
2026-03-15 16:46:56 +01:00
committed by Sam Atkins
parent a141c2c492
commit 80a0a39b79
Notes: github-actions[bot] 2026-03-16 08:46:13 +00:00
14 changed files with 255 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
Harness status: OK
Found 2 tests
2 Pass
Pass Property scroll-behavior has initial value auto
Pass Property scroll-behavior does not inherit

View File

@@ -0,0 +1,7 @@
Harness status: OK
Found 2 tests
2 Pass
Pass Property scroll-behavior value 'auto'
Pass Property scroll-behavior value 'smooth'

View File

@@ -0,0 +1,7 @@
Harness status: OK
Found 2 tests
2 Pass
Pass e.style['scroll-behavior'] = "auto" should set the property value
Pass e.style['scroll-behavior'] = "smooth" should set the property value

View File

@@ -0,0 +1,9 @@
Harness status: OK
Found 3 tests
2 Pass
1 Fail
Pass Make sure the page is ready for animation.
Pass Instant scrolling of an element with default scroll-behavior
Fail Smooth scrolling of an element with default scroll-behavior