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