OLD | NEW |
1 Test to make sure text-decoration-line property returns values properly. | 1 Test to make sure text-decoration-line is computed 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-line') is null | 7 PASS e.style.textDecorationLine is "" |
8 PASS computedStyle.textDecorationLine is 'none' | 8 PASS computedStyle.textDecorationLine is "none" |
9 PASS computedStyle.getPropertyCSSValue('text-decoration-line').toString() is '[o
bject CSSPrimitiveValue]' | |
10 PASS computedStyle.getPropertyCSSValue('text-decoration-line').cssText is 'none' | |
11 | 9 |
12 Initial value (explicit): | 10 Initial value (explicit): |
13 PASS e.style.textDecorationLine is 'initial' | 11 PASS e.style.textDecorationLine is "initial" |
14 PASS e.style.getPropertyCSSValue('text-decoration-line').toString() is '[object
CSSValue]' | 12 PASS computedStyle.textDecorationLine is "none" |
15 PASS e.style.getPropertyCSSValue('text-decoration-line').cssText is 'initial' | |
16 PASS computedStyle.textDecorationLine is 'none' | |
17 PASS computedStyle.getPropertyCSSValue('text-decoration-line').toString() is '[o
bject CSSPrimitiveValue]' | |
18 PASS computedStyle.getPropertyCSSValue('text-decoration-line').cssText is 'none' | |
19 | 13 |
20 Value 'none': | 14 Value 'none': |
21 PASS e.style.textDecorationLine is 'none' | 15 PASS e.style.textDecorationLine is "none" |
22 PASS e.style.getPropertyCSSValue('text-decoration-line').toString() is '[object
CSSPrimitiveValue]' | 16 PASS computedStyle.textDecorationLine is "none" |
23 PASS e.style.getPropertyCSSValue('text-decoration-line').cssText is 'none' | |
24 PASS computedStyle.textDecorationLine is 'none' | |
25 PASS computedStyle.getPropertyCSSValue('text-decoration-line').toString() is '[o
bject CSSPrimitiveValue]' | |
26 PASS computedStyle.getPropertyCSSValue('text-decoration-line').cssText is 'none' | |
27 | 17 |
28 Value 'underline': | 18 Value 'underline': |
29 PASS e.style.textDecorationLine is 'underline' | 19 PASS e.style.textDecorationLine is "underline" |
30 PASS e.style.getPropertyCSSValue('text-decoration-line').toString() is '[object
CSSValueList]' | 20 PASS computedStyle.textDecorationLine is "underline" |
31 PASS e.style.getPropertyCSSValue('text-decoration-line').cssText is 'underline' | |
32 PASS computedStyle.textDecorationLine is 'underline' | |
33 PASS computedStyle.getPropertyCSSValue('text-decoration-line').toString() is '[o
bject CSSValueList]' | |
34 PASS computedStyle.getPropertyCSSValue('text-decoration-line').cssText is 'under
line' | |
35 | 21 |
36 Value 'overline': | 22 Value 'overline': |
37 PASS e.style.textDecorationLine is 'overline' | 23 PASS e.style.textDecorationLine is "overline" |
38 PASS e.style.getPropertyCSSValue('text-decoration-line').toString() is '[object
CSSValueList]' | 24 PASS computedStyle.textDecorationLine is "overline" |
39 PASS e.style.getPropertyCSSValue('text-decoration-line').cssText is 'overline' | |
40 PASS computedStyle.textDecorationLine is 'overline' | |
41 PASS computedStyle.getPropertyCSSValue('text-decoration-line').toString() is '[o
bject CSSValueList]' | |
42 PASS computedStyle.getPropertyCSSValue('text-decoration-line').cssText is 'overl
ine' | |
43 | 25 |
44 Value 'line-through': | 26 Value 'line-through': |
45 PASS e.style.textDecorationLine is 'line-through' | 27 PASS e.style.textDecorationLine is "line-through" |
46 PASS e.style.getPropertyCSSValue('text-decoration-line').toString() is '[object
CSSValueList]' | 28 PASS computedStyle.textDecorationLine is "line-through" |
47 PASS e.style.getPropertyCSSValue('text-decoration-line').cssText is 'line-throug
h' | |
48 PASS computedStyle.textDecorationLine is 'line-through' | |
49 PASS computedStyle.getPropertyCSSValue('text-decoration-line').toString() is '[o
bject CSSValueList]' | |
50 PASS computedStyle.getPropertyCSSValue('text-decoration-line').cssText is 'line-
through' | |
51 | 29 |
52 Value 'blink' (valid, but ignored on computed style): | 30 Value 'blink' (valid, but ignored on computed style): |
53 PASS e.style.textDecorationLine is 'blink' | 31 PASS e.style.textDecorationLine is "blink" |
54 PASS e.style.getPropertyCSSValue('text-decoration-line').toString() is '[object
CSSValueList]' | 32 PASS computedStyle.textDecorationLine is "none" |
55 PASS e.style.getPropertyCSSValue('text-decoration-line').cssText is 'blink' | |
56 PASS computedStyle.textDecorationLine is 'none' | |
57 PASS computedStyle.getPropertyCSSValue('text-decoration-line').toString() is '[o
bject CSSPrimitiveValue]' | |
58 PASS computedStyle.getPropertyCSSValue('text-decoration-line').cssText is 'none' | |
59 | 33 |
60 Value 'underline overline line-through blink': | 34 Value 'underline overline line-through blink': |
61 PASS e.style.textDecorationLine is 'underline overline line-through blink' | 35 PASS e.style.textDecorationLine is "underline overline line-through blink" |
62 PASS e.style.getPropertyCSSValue('text-decoration-line').toString() is '[object
CSSValueList]' | 36 PASS computedStyle.textDecorationLine is "underline overline line-through" |
63 PASS e.style.getPropertyCSSValue('text-decoration-line').cssText is 'underline o
verline line-through blink' | |
64 PASS computedStyle.textDecorationLine is 'underline overline line-through' | |
65 PASS computedStyle.getPropertyCSSValue('text-decoration-line').toString() is '[o
bject CSSValueList]' | |
66 PASS computedStyle.getPropertyCSSValue('text-decoration-line').cssText is 'under
line overline line-through' | |
67 | 37 |
68 Value '': | 38 Value '': |
69 PASS e.style.getPropertyCSSValue('text-decoration-line') is null | 39 PASS e.style.textDecorationLine is "" |
70 PASS computedStyle.textDecorationLine is 'none' | 40 PASS computedStyle.textDecorationLine is "none" |
71 PASS computedStyle.getPropertyCSSValue('text-decoration-line').toString() is '[o
bject CSSPrimitiveValue]' | |
72 PASS computedStyle.getPropertyCSSValue('text-decoration-line').cssText is 'none' | |
73 | 41 |
74 Parent gets 'underline' value: | 42 Parent gets 'underline' value: |
75 PASS e.style.textDecorationLine is 'underline' | 43 PASS e.style.textDecorationLine is "underline" |
76 PASS e.style.getPropertyCSSValue('text-decoration-line').toString() is '[object
CSSValueList]' | 44 PASS computedStyle.textDecorationLine is "underline" |
77 PASS e.style.getPropertyCSSValue('text-decoration-line').cssText is 'underline' | |
78 PASS computedStyle.textDecorationLine is 'underline' | |
79 PASS computedStyle.getPropertyCSSValue('text-decoration-line').toString() is '[o
bject CSSValueList]' | |
80 PASS computedStyle.getPropertyCSSValue('text-decoration-line').cssText is 'under
line' | |
81 | 45 |
82 Ancestor should explicitly inherit value from parent when 'inherit' value is use
d: | 46 Ancestor should explicitly inherit value from parent when 'inherit' value is use
d: |
83 PASS e.style.textDecorationLine is 'inherit' | 47 PASS e.style.textDecorationLine is "inherit" |
84 PASS e.style.getPropertyCSSValue('text-decoration-line').toString() is '[object
CSSValue]' | 48 PASS computedStyle.textDecorationLine is "underline" |
85 PASS e.style.getPropertyCSSValue('text-decoration-line').cssText is 'inherit' | |
86 PASS computedStyle.textDecorationLine is 'underline' | |
87 PASS computedStyle.getPropertyCSSValue('text-decoration-line').toString() is '[o
bject CSSValueList]' | |
88 PASS computedStyle.getPropertyCSSValue('text-decoration-line').cssText is 'under
line' | |
89 | 49 |
90 Ancestor should not implicitly inherit value from parent (i.e. when value is voi
d): | 50 Ancestor should not implicitly inherit value from parent (i.e. when value is voi
d): |
91 PASS e.style.getPropertyCSSValue('text-decoration-line') is null | 51 PASS e.style.textDecorationLine is "" |
92 PASS computedStyle.textDecorationLine is 'none' | 52 PASS computedStyle.textDecorationLine is "none" |
93 PASS computedStyle.getPropertyCSSValue('text-decoration-line').toString() is '[o
bject CSSPrimitiveValue]' | |
94 PASS computedStyle.getPropertyCSSValue('text-decoration-line').cssText is 'none' | |
95 | 53 |
96 PASS successfullyParsed is true | 54 PASS successfullyParsed is true |
97 | 55 |
98 TEST COMPLETE | 56 TEST COMPLETE |
99 | 57 |
OLD | NEW |