OLD | NEW |
1 Test that setting and getting scroll-behavior works as expected | 1 Test that setting and getting scroll-behavior works as expected |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 Test getting scroll-behavior set through CSS | 6 Test getting scroll-behavior set through CSS |
7 PASS getComputedStyle(scrollBehaviorInstant, '').getPropertyValue('scroll-behavi
or') is 'instant' | 7 PASS getComputedStyle(scrollBehaviorAuto, '').getPropertyValue('scroll-behavior'
) is 'auto' |
8 PASS getComputedStyle(scrollBehaviorSmooth, '').getPropertyValue('scroll-behavio
r') is 'smooth' | 8 PASS getComputedStyle(scrollBehaviorSmooth, '').getPropertyValue('scroll-behavio
r') is 'smooth' |
9 | 9 |
10 Test initial value of scroll-behavior | 10 Test initial value of scroll-behavior |
11 PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'insta
nt' | 11 PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'auto' |
12 | 12 |
13 Test getting and setting scroll-behavior through JS | 13 Test getting and setting scroll-behavior through JS |
14 PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'smoot
h' | 14 PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'smoot
h' |
15 PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'insta
nt' | 15 PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'auto' |
16 | 16 |
17 Test the value 'initial' | 17 Test the value 'initial' |
18 PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'smoot
h' | 18 PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'smoot
h' |
19 PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'insta
nt' | 19 PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'auto' |
20 | 20 |
21 Test the value 'inherit' | 21 Test the value 'inherit' |
22 PASS getComputedStyle(parentElement, '').getPropertyValue('scroll-behavior') is
'smooth' | 22 PASS getComputedStyle(parentElement, '').getPropertyValue('scroll-behavior') is
'smooth' |
23 PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'smoot
h' | 23 PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'smoot
h' |
24 | 24 |
25 Test that scroll-behavior is not inherited by default | 25 Test that scroll-behavior is not inherited by default |
26 PASS getComputedStyle(parentElement, '').getPropertyValue('scroll-behavior') is
'smooth' | 26 PASS getComputedStyle(parentElement, '').getPropertyValue('scroll-behavior') is
'smooth' |
27 PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'insta
nt' | 27 PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'auto' |
28 PASS successfullyParsed is true | 28 PASS successfullyParsed is true |
29 | 29 |
30 TEST COMPLETE | 30 TEST COMPLETE |
31 | 31 |
OLD | NEW |