summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/scroll-behavior/parse-scroll-behavior-expected.txt
blob: 41e4fdca70cb7c1acdf572a64bf40115a7e53219 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Test that setting and getting scroll-behavior works as expected

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


Test getting scroll-behavior set through CSS
PASS getComputedStyle(scrollBehaviorAuto, '').getPropertyValue('scroll-behavior') is 'auto'
PASS getComputedStyle(scrollBehaviorSmooth, '').getPropertyValue('scroll-behavior') is 'smooth'

Test initial value of scroll-behavior
PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'auto'

Test getting and setting scroll-behavior through JS
PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'smooth'
PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'auto'

Test the value 'initial'
PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'smooth'
PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'auto'

Test the value 'inherit'
PASS getComputedStyle(parentElement, '').getPropertyValue('scroll-behavior') is 'smooth'
PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'smooth'

Test that scroll-behavior is not inherited by default
PASS getComputedStyle(parentElement, '').getPropertyValue('scroll-behavior') is 'smooth'
PASS getComputedStyle(element, '').getPropertyValue('scroll-behavior') is 'auto'
PASS successfullyParsed is true

TEST COMPLETE