OLD | NEW |
1 Test to make sure -webkit-text-decoration-color property returns CSSPrimitiveVal
ue properly. | 1 Test to make sure text-decoration-color property returns CSSPrimitiveValue prope
rly. |
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 Ancestor should not inherit 'green' value from parent (fallback to initial value
): | 6 Ancestor should not inherit 'green' value from parent (fallback to initial value
): |
7 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color') is null | 7 PASS e.style.getPropertyCSSValue('text-decoration-color') is null |
8 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString
() is '[object CSSPrimitiveValue]' | 8 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[
object CSSPrimitiveValue]' |
9 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText
is 'rgb(0, 0, 0)' | 9 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(
0, 0, 0)' |
10 PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 0, 0)' | 10 PASS computedStyle.textDecorationColor is 'rgb(0, 0, 0)' |
11 | 11 |
12 Parent should contain 'green': | 12 Parent should contain 'green': |
13 PASS e.style.webkitTextDecorationColor is 'green' | 13 PASS e.style.textDecorationColor is 'green' |
14 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is
'[object CSSPrimitiveValue]' | 14 PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object
CSSPrimitiveValue]' |
15 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'gr
een' | 15 PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'green' |
16 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString
() is '[object CSSPrimitiveValue]' | 16 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[
object CSSPrimitiveValue]' |
17 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText
is 'rgb(0, 128, 0)' | 17 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(
0, 128, 0)' |
18 PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 128, 0)' | 18 PASS computedStyle.textDecorationColor is 'rgb(0, 128, 0)' |
19 | 19 |
20 JavaScript setter tests for valid, initial, invalid and blank values: | 20 JavaScript setter tests for valid, initial, invalid and blank values: |
21 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color') is null | 21 PASS e.style.getPropertyCSSValue('text-decoration-color') is null |
22 | 22 |
23 Valid value 'blue': | 23 Valid value 'blue': |
24 PASS e.style.webkitTextDecorationColor is 'blue' | 24 PASS e.style.textDecorationColor is 'blue' |
25 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is
'[object CSSPrimitiveValue]' | 25 PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object
CSSPrimitiveValue]' |
26 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'bl
ue' | 26 PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'blue' |
27 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString
() is '[object CSSPrimitiveValue]' | 27 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[
object CSSPrimitiveValue]' |
28 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText
is 'rgb(0, 0, 255)' | 28 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(
0, 0, 255)' |
29 PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 0, 255)' | 29 PASS computedStyle.textDecorationColor is 'rgb(0, 0, 255)' |
30 | 30 |
31 Valid value '#FFFFFF': | 31 Valid value '#FFFFFF': |
32 PASS e.style.webkitTextDecorationColor is 'rgb(255, 255, 255)' | 32 PASS e.style.textDecorationColor is 'rgb(255, 255, 255)' |
33 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is
'[object CSSPrimitiveValue]' | 33 PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object
CSSPrimitiveValue]' |
34 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rg
b(255, 255, 255)' | 34 PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(255, 2
55, 255)' |
35 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString
() is '[object CSSPrimitiveValue]' | 35 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[
object CSSPrimitiveValue]' |
36 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText
is 'rgb(255, 255, 255)' | 36 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(
255, 255, 255)' |
37 PASS computedStyle.webkitTextDecorationColor is 'rgb(255, 255, 255)' | 37 PASS computedStyle.textDecorationColor is 'rgb(255, 255, 255)' |
38 | 38 |
39 Valid value 'rgb(0, 255, 0)': | 39 Valid value 'rgb(0, 255, 0)': |
40 PASS e.style.webkitTextDecorationColor is 'rgb(0, 255, 0)' | 40 PASS e.style.textDecorationColor is 'rgb(0, 255, 0)' |
41 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is
'[object CSSPrimitiveValue]' | 41 PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object
CSSPrimitiveValue]' |
42 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rg
b(0, 255, 0)' | 42 PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 255
, 0)' |
43 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString
() is '[object CSSPrimitiveValue]' | 43 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[
object CSSPrimitiveValue]' |
44 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText
is 'rgb(0, 255, 0)' | 44 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(
0, 255, 0)' |
45 PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 255, 0)' | 45 PASS computedStyle.textDecorationColor is 'rgb(0, 255, 0)' |
46 | 46 |
47 Valid value 'rgba(100, 100, 100, 0.5)': | 47 Valid value 'rgba(100, 100, 100, 0.5)': |
48 PASS e.style.webkitTextDecorationColor is 'rgba(100, 100, 100, 0.498039)' | 48 PASS e.style.textDecorationColor is 'rgba(100, 100, 100, 0.498039)' |
49 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is
'[object CSSPrimitiveValue]' | 49 PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object
CSSPrimitiveValue]' |
50 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rg
ba(100, 100, 100, 0.498039)' | 50 PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'rgba(100,
100, 100, 0.498039)' |
51 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString
() is '[object CSSPrimitiveValue]' | 51 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[
object CSSPrimitiveValue]' |
52 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText
is 'rgba(100, 100, 100, 0.498039)' | 52 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgba
(100, 100, 100, 0.498039)' |
53 PASS computedStyle.webkitTextDecorationColor is 'rgba(100, 100, 100, 0.498039)' | 53 PASS computedStyle.textDecorationColor is 'rgba(100, 100, 100, 0.498039)' |
54 | 54 |
55 Valid value 'hsl(240, 100%, 50%)': | 55 Valid value 'hsl(240, 100%, 50%)': |
56 PASS e.style.webkitTextDecorationColor is 'rgb(0, 0, 255)' | 56 PASS e.style.textDecorationColor is 'rgb(0, 0, 255)' |
57 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is
'[object CSSPrimitiveValue]' | 57 PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object
CSSPrimitiveValue]' |
58 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rg
b(0, 0, 255)' | 58 PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 0,
255)' |
59 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString
() is '[object CSSPrimitiveValue]' | 59 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[
object CSSPrimitiveValue]' |
60 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText
is 'rgb(0, 0, 255)' | 60 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(
0, 0, 255)' |
61 PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 0, 255)' | 61 PASS computedStyle.textDecorationColor is 'rgb(0, 0, 255)' |
62 | 62 |
63 Valid value 'hsla(240, 100%, 50%, 0.5)': | 63 Valid value 'hsla(240, 100%, 50%, 0.5)': |
64 PASS e.style.webkitTextDecorationColor is 'rgba(0, 0, 255, 0.498039)' | 64 PASS e.style.textDecorationColor is 'rgba(0, 0, 255, 0.498039)' |
65 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is
'[object CSSPrimitiveValue]' | 65 PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object
CSSPrimitiveValue]' |
66 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rg
ba(0, 0, 255, 0.498039)' | 66 PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'rgba(0, 0,
255, 0.498039)' |
67 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString
() is '[object CSSPrimitiveValue]' | 67 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[
object CSSPrimitiveValue]' |
68 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText
is 'rgba(0, 0, 255, 0.498039)' | 68 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgba
(0, 0, 255, 0.498039)' |
69 PASS computedStyle.webkitTextDecorationColor is 'rgba(0, 0, 255, 0.498039)' | 69 PASS computedStyle.textDecorationColor is 'rgba(0, 0, 255, 0.498039)' |
70 | 70 |
71 Initial value: | 71 Initial value: |
72 PASS e.style.webkitTextDecorationColor is 'initial' | 72 PASS e.style.textDecorationColor is 'initial' |
73 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is
'[object CSSValue]' | 73 PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object
CSSValue]' |
74 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'in
itial' | 74 PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'initial' |
75 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString
() is '[object CSSPrimitiveValue]' | 75 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[
object CSSPrimitiveValue]' |
76 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText
is 'rgb(0, 0, 0)' | 76 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(
0, 0, 0)' |
77 PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 0, 0)' | 77 PASS computedStyle.textDecorationColor is 'rgb(0, 0, 0)' |
78 | 78 |
79 Invalid value (ie. 'unknown'): | 79 Invalid value (ie. 'unknown'): |
80 PASS e.style.webkitTextDecorationColor is 'initial' | 80 PASS e.style.textDecorationColor is 'initial' |
81 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is
'[object CSSValue]' | 81 PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object
CSSValue]' |
82 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'in
itial' | 82 PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'initial' |
83 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString
() is '[object CSSPrimitiveValue]' | 83 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[
object CSSPrimitiveValue]' |
84 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText
is 'rgb(0, 0, 0)' | 84 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(
0, 0, 0)' |
85 PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 0, 0)' | 85 PASS computedStyle.textDecorationColor is 'rgb(0, 0, 0)' |
86 | 86 |
87 Empty value (resets the property): | 87 Empty value (resets the property): |
88 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color') is null | 88 PASS e.style.getPropertyCSSValue('text-decoration-color') is null |
89 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString
() is '[object CSSPrimitiveValue]' | 89 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[
object CSSPrimitiveValue]' |
90 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText
is 'rgb(0, 0, 0)' | 90 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(
0, 0, 0)' |
91 PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 0, 0)' | 91 PASS computedStyle.textDecorationColor is 'rgb(0, 0, 0)' |
92 | 92 |
93 Empty value with different 'currentColor' initial value (green): | 93 Empty value with different 'currentColor' initial value (green): |
94 PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color') is null | 94 PASS e.style.getPropertyCSSValue('text-decoration-color') is null |
95 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString
() is '[object CSSPrimitiveValue]' | 95 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[
object CSSPrimitiveValue]' |
96 PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText
is 'rgb(0, 128, 0)' | 96 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(
0, 128, 0)' |
97 PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 128, 0)' | 97 PASS computedStyle.textDecorationColor is 'rgb(0, 128, 0)' |
98 | 98 |
99 PASS successfullyParsed is true | 99 PASS successfullyParsed is true |
100 | 100 |
101 TEST COMPLETE | 101 TEST COMPLETE |
102 | 102 |
OLD | NEW |