|
Line 0
a/LayoutTests/fast/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-color-expected.txt_sec1
|
|
|
1 |
Test to make sure -webkit-text-decoration-color property returns CSSPrimitiveValue properly. |
| 2 |
|
| 3 |
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| 4 |
|
| 5 |
|
| 6 |
Ancestor should not inherit 'red' value from parent (fallback to initial value): |
| 7 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color') is null |
| 8 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
| 9 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 0, 0)' |
| 10 |
PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 0, 0)' |
| 11 |
|
| 12 |
Parent should cointain 'red': |
| 13 |
PASS e.style.webkitTextDecorationColor is 'red' |
| 14 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
| 15 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'red' |
| 16 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
| 17 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(255, 0, 0)' |
| 18 |
PASS computedStyle.webkitTextDecorationColor is 'rgb(255, 0, 0)' |
| 19 |
|
| 20 |
JavaScript setter tests for valid, initial, invalid and blank values: |
| 21 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color') is null |
| 22 |
|
| 23 |
Valid value 'blue': |
| 24 |
PASS e.style.webkitTextDecorationColor is 'blue' |
| 25 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
| 26 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'blue' |
| 27 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
| 28 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 0, 255)' |
| 29 |
PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 0, 255)' |
| 30 |
|
| 31 |
Valid value '#FFFFFF': |
| 32 |
PASS e.style.webkitTextDecorationColor is 'rgb(255, 255, 255)' |
| 33 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
| 34 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(255, 255, 255)' |
| 35 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
| 36 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(255, 255, 255)' |
| 37 |
PASS computedStyle.webkitTextDecorationColor is 'rgb(255, 255, 255)' |
| 38 |
|
| 39 |
Valid value 'rgb(0, 255, 0)': |
| 40 |
PASS e.style.webkitTextDecorationColor is 'rgb(0, 255, 0)' |
| 41 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
| 42 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 255, 0)' |
| 43 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
| 44 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 255, 0)' |
| 45 |
PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 255, 0)' |
| 46 |
|
| 47 |
Valid value 'rgba(100, 100, 100, 0.5)': |
| 48 |
PASS e.style.webkitTextDecorationColor is 'rgba(100, 100, 100, 0.498039)' |
| 49 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
| 50 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgba(100, 100, 100, 0.498039)' |
| 51 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
| 52 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgba(100, 100, 100, 0.498039)' |
| 53 |
PASS computedStyle.webkitTextDecorationColor is 'rgba(100, 100, 100, 0.498039)' |
| 54 |
|
| 55 |
Valid value 'hsl(240, 100%, 50%)': |
| 56 |
PASS e.style.webkitTextDecorationColor is 'rgb(0, 0, 255)' |
| 57 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
| 58 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 0, 255)' |
| 59 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
| 60 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 0, 255)' |
| 61 |
PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 0, 255)' |
| 62 |
|
| 63 |
Valid value 'hsla(240, 100%, 50%, 0.5)': |
| 64 |
PASS e.style.webkitTextDecorationColor is 'rgba(0, 0, 255, 0.498039)' |
| 65 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
| 66 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgba(0, 0, 255, 0.498039)' |
| 67 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
| 68 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgba(0, 0, 255, 0.498039)' |
| 69 |
PASS computedStyle.webkitTextDecorationColor is 'rgba(0, 0, 255, 0.498039)' |
| 70 |
|
| 71 |
Initial value: |
| 72 |
PASS e.style.webkitTextDecorationColor is 'initial' |
| 73 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSValue]' |
| 74 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'initial' |
| 75 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
| 76 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 0, 0)' |
| 77 |
PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 0, 0)' |
| 78 |
|
| 79 |
Invalid value (ie. 'unknown'): |
| 80 |
PASS e.style.webkitTextDecorationColor is 'initial' |
| 81 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSValue]' |
| 82 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'initial' |
| 83 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
| 84 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 0, 0)' |
| 85 |
PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 0, 0)' |
| 86 |
|
| 87 |
Empty value (resets the property): |
| 88 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color') is null |
| 89 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
| 90 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 0, 0)' |
| 91 |
PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 0, 0)' |
| 92 |
|
| 93 |
Empty value with different 'currentColor' initial value (red): |
| 94 |
PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color') is null |
| 95 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
| 96 |
PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(255, 0, 0)' |
| 97 |
PASS computedStyle.webkitTextDecorationColor is 'rgb(255, 0, 0)' |
| 98 |
|
| 99 |
PASS successfullyParsed is true |
| 100 |
|
| 101 |
TEST COMPLETE |
| 102 |
|