OLD | NEW |
1 Test to make sure text-decoration property returns values properly. | 1 Test to make sure text-decoration property returns values properly. |
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 Initial value: | 6 Initial value: |
7 PASS e.style.getPropertyCSSValue('text-decoration') is null | |
8 PASS computedStyle.textDecoration is 'none solid rgb(0, 0, 0)' | 7 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 | 8 |
12 Initial value (explicit): | 9 Initial value (explicit): |
13 PASS e.style.getPropertyCSSValue('text-decoration') is null | |
14 PASS computedStyle.textDecoration is 'none solid rgb(0, 0, 0)' | 10 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 | 11 |
18 Value 'none': | 12 Value 'none': |
19 PASS e.style.getPropertyCSSValue('text-decoration') is null | |
20 PASS computedStyle.textDecoration is 'none solid rgb(0, 0, 0)' | 13 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 | 14 |
24 Value 'underline': | 15 Value 'underline': |
25 PASS e.style.getPropertyCSSValue('text-decoration') is null | |
26 PASS computedStyle.textDecoration is 'underline solid rgb(0, 0, 0)' | 16 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 | 17 |
30 Value 'overline': | 18 Value 'overline': |
31 PASS e.style.getPropertyCSSValue('text-decoration') is null | |
32 PASS computedStyle.textDecoration is 'overline solid rgb(0, 0, 0)' | 19 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 s
olid rgb(0, 0, 0)' | |
35 | 20 |
36 Value 'line-through': | 21 Value 'line-through': |
37 PASS e.style.getPropertyCSSValue('text-decoration') is null | |
38 PASS computedStyle.textDecoration is 'line-through solid rgb(0, 0, 0)' | 22 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-throu
gh solid rgb(0, 0, 0)' | |
41 | 23 |
42 Value 'underline overline line-through': | 24 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)' | 25 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 | 26 |
48 Value 'blink' (valid but ignored): | 27 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)' | 28 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 | 29 |
54 Value '': | 30 Value '': |
55 PASS e.style.getPropertyCSSValue('text-decoration') is null | |
56 PASS computedStyle.textDecoration is 'none solid rgb(0, 0, 0)' | 31 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 | 32 |
60 Parent gets 'underline' value: | 33 Parent gets 'underline' value: |
61 PASS e.style.getPropertyCSSValue('text-decoration') is null | |
62 PASS computedStyle.textDecoration is 'underline solid rgb(0, 0, 0)' | 34 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 | 35 |
66 Ancestor should explicitly inherit value from parent when 'inherit' value is use
d: | 36 Ancestor should explicitly inherit value from parent when 'inherit' value is use
d: |
67 PASS e.style.getPropertyCSSValue('text-decoration') is null | |
68 PASS computedStyle.textDecoration is 'underline solid rgb(0, 0, 0)' | 37 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 | 38 |
72 Ancestor should not implicitly inherit value from parent (i.e. when value is voi
d): | 39 Ancestor should not implicitly inherit value from parent (i.e. when value is voi
d): |
73 PASS e.style.getPropertyCSSValue('text-decoration') is null | |
74 FAIL computedStyle.textDecoration should be none. Was none solid rgb(0, 0, 0). | 40 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 | 41 |
78 PASS successfullyParsed is true | 42 PASS successfullyParsed is true |
79 | 43 |
80 TEST COMPLETE | 44 TEST COMPLETE |
81 | 45 |
OLD | NEW |