c6b176f6946627eb55eb4fef43a03c12844d6164
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / css / getComputedStyle / getComputedStyle-text-decoration-expected.txt
1 Test to make sure text-decoration property returns values properly.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 Initial value:
7 PASS e.style.getPropertyCSSValue('text-decoration') is null
8 PASS computedStyle.textDecoration is 'none solid rgb(0, 0, 0)'
9 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
10 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none solid rgb(0, 0, 0)'
11
12 Initial value (explicit):
13 PASS e.style.getPropertyCSSValue('text-decoration') is null
14 PASS computedStyle.textDecoration is 'none solid rgb(0, 0, 0)'
15 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
16 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none solid rgb(0, 0, 0)'
17
18 Value 'none':
19 PASS e.style.getPropertyCSSValue('text-decoration') is null
20 PASS computedStyle.textDecoration is 'none solid rgb(0, 0, 0)'
21 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
22 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none solid rgb(0, 0, 0)'
23
24 Value 'underline':
25 PASS e.style.getPropertyCSSValue('text-decoration') is null
26 PASS computedStyle.textDecoration is 'underline solid rgb(0, 0, 0)'
27 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
28 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'underline solid rgb(0, 0, 0)'
29
30 Value 'overline':
31 PASS e.style.getPropertyCSSValue('text-decoration') is null
32 PASS computedStyle.textDecoration is 'overline solid rgb(0, 0, 0)'
33 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
34 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'overline solid rgb(0, 0, 0)'
35
36 Value 'line-through':
37 PASS e.style.getPropertyCSSValue('text-decoration') is null
38 PASS computedStyle.textDecoration is 'line-through solid rgb(0, 0, 0)'
39 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
40 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'line-through solid rgb(0, 0, 0)'
41
42 Value 'underline overline line-through':
43 PASS e.style.getPropertyCSSValue('text-decoration') is null
44 PASS computedStyle.textDecoration is 'underline overline line-through solid rgb(0, 0, 0)'
45 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
46 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'underline overline line-through solid rgb(0, 0, 0)'
47
48 Value 'blink' (valid but ignored):
49 PASS e.style.getPropertyCSSValue('text-decoration') is null
50 PASS computedStyle.textDecoration is 'none solid rgb(0, 0, 0)'
51 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
52 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none solid rgb(0, 0, 0)'
53
54 Value '':
55 PASS e.style.getPropertyCSSValue('text-decoration') is null
56 PASS computedStyle.textDecoration is 'none solid rgb(0, 0, 0)'
57 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
58 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none solid rgb(0, 0, 0)'
59
60 Parent gets 'underline' value:
61 PASS e.style.getPropertyCSSValue('text-decoration') is null
62 PASS computedStyle.textDecoration is 'underline solid rgb(0, 0, 0)'
63 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
64 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'underline solid rgb(0, 0, 0)'
65
66 Ancestor should explicitly inherit value from parent when 'inherit' value is used:
67 PASS e.style.getPropertyCSSValue('text-decoration') is null
68 PASS computedStyle.textDecoration is 'underline solid rgb(0, 0, 0)'
69 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
70 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'underline solid rgb(0, 0, 0)'
71
72 Ancestor should not implicitly inherit value from parent (i.e. when value is void):
73 PASS e.style.getPropertyCSSValue('text-decoration') is null
74 FAIL computedStyle.textDecoration should be none. Was none solid rgb(0, 0, 0).
75 FAIL computedStyle.getPropertyCSSValue('text-decoration').toString() should be [object CSSPrimitiveValue]. Was [object CSSValueList].
76 FAIL computedStyle.getPropertyCSSValue('text-decoration').cssText should be none. Was none solid rgb(0, 0, 0).
77
78 PASS successfullyParsed is true
79
80 TEST COMPLETE
81