Index: LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-color-expected.txt |
diff --git a/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-color-expected.txt b/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-color-expected.txt |
index 6cb5c68835bb6b9a9c698b50648e317cdd421a1e..5c9f565c46110ba044641794e2b9ab7acc047e6f 100644 |
--- a/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-color-expected.txt |
+++ b/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-color-expected.txt |
@@ -1,100 +1,100 @@ |
-Test to make sure -webkit-text-decoration-color property returns CSSPrimitiveValue properly. |
+Test to make sure text-decoration-color property returns CSSPrimitiveValue properly. |
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
Ancestor should not inherit 'green' value from parent (fallback to initial value): |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color') is null |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 0, 0)' |
-PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 0, 0)' |
+PASS e.style.getPropertyCSSValue('text-decoration-color') is null |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 0, 0)' |
+PASS computedStyle.textDecorationColor is 'rgb(0, 0, 0)' |
Parent should contain 'green': |
-PASS e.style.webkitTextDecorationColor is 'green' |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'green' |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 128, 0)' |
-PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 128, 0)' |
+PASS e.style.textDecorationColor is 'green' |
+PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
+PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'green' |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 128, 0)' |
+PASS computedStyle.textDecorationColor is 'rgb(0, 128, 0)' |
JavaScript setter tests for valid, initial, invalid and blank values: |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color') is null |
+PASS e.style.getPropertyCSSValue('text-decoration-color') is null |
Valid value 'blue': |
-PASS e.style.webkitTextDecorationColor is 'blue' |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'blue' |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 0, 255)' |
-PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 0, 255)' |
+PASS e.style.textDecorationColor is 'blue' |
+PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
+PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'blue' |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 0, 255)' |
+PASS computedStyle.textDecorationColor is 'rgb(0, 0, 255)' |
Valid value '#FFFFFF': |
-PASS e.style.webkitTextDecorationColor is 'rgb(255, 255, 255)' |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(255, 255, 255)' |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(255, 255, 255)' |
-PASS computedStyle.webkitTextDecorationColor is 'rgb(255, 255, 255)' |
+PASS e.style.textDecorationColor is 'rgb(255, 255, 255)' |
+PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
+PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(255, 255, 255)' |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(255, 255, 255)' |
+PASS computedStyle.textDecorationColor is 'rgb(255, 255, 255)' |
Valid value 'rgb(0, 255, 0)': |
-PASS e.style.webkitTextDecorationColor is 'rgb(0, 255, 0)' |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 255, 0)' |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 255, 0)' |
-PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 255, 0)' |
+PASS e.style.textDecorationColor is 'rgb(0, 255, 0)' |
+PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
+PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 255, 0)' |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 255, 0)' |
+PASS computedStyle.textDecorationColor is 'rgb(0, 255, 0)' |
Valid value 'rgba(100, 100, 100, 0.5)': |
-PASS e.style.webkitTextDecorationColor is 'rgba(100, 100, 100, 0.498039)' |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgba(100, 100, 100, 0.498039)' |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgba(100, 100, 100, 0.498039)' |
-PASS computedStyle.webkitTextDecorationColor is 'rgba(100, 100, 100, 0.498039)' |
+PASS e.style.textDecorationColor is 'rgba(100, 100, 100, 0.498039)' |
+PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
+PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'rgba(100, 100, 100, 0.498039)' |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgba(100, 100, 100, 0.498039)' |
+PASS computedStyle.textDecorationColor is 'rgba(100, 100, 100, 0.498039)' |
Valid value 'hsl(240, 100%, 50%)': |
-PASS e.style.webkitTextDecorationColor is 'rgb(0, 0, 255)' |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 0, 255)' |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 0, 255)' |
-PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 0, 255)' |
+PASS e.style.textDecorationColor is 'rgb(0, 0, 255)' |
+PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
+PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 0, 255)' |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 0, 255)' |
+PASS computedStyle.textDecorationColor is 'rgb(0, 0, 255)' |
Valid value 'hsla(240, 100%, 50%, 0.5)': |
-PASS e.style.webkitTextDecorationColor is 'rgba(0, 0, 255, 0.498039)' |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgba(0, 0, 255, 0.498039)' |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgba(0, 0, 255, 0.498039)' |
-PASS computedStyle.webkitTextDecorationColor is 'rgba(0, 0, 255, 0.498039)' |
+PASS e.style.textDecorationColor is 'rgba(0, 0, 255, 0.498039)' |
+PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
+PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'rgba(0, 0, 255, 0.498039)' |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgba(0, 0, 255, 0.498039)' |
+PASS computedStyle.textDecorationColor is 'rgba(0, 0, 255, 0.498039)' |
Initial value: |
-PASS e.style.webkitTextDecorationColor is 'initial' |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSValue]' |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'initial' |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 0, 0)' |
-PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 0, 0)' |
+PASS e.style.textDecorationColor is 'initial' |
+PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSValue]' |
+PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'initial' |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 0, 0)' |
+PASS computedStyle.textDecorationColor is 'rgb(0, 0, 0)' |
Invalid value (ie. 'unknown'): |
-PASS e.style.webkitTextDecorationColor is 'initial' |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSValue]' |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'initial' |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 0, 0)' |
-PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 0, 0)' |
+PASS e.style.textDecorationColor is 'initial' |
+PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSValue]' |
+PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'initial' |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 0, 0)' |
+PASS computedStyle.textDecorationColor is 'rgb(0, 0, 0)' |
Empty value (resets the property): |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color') is null |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 0, 0)' |
-PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 0, 0)' |
+PASS e.style.getPropertyCSSValue('text-decoration-color') is null |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 0, 0)' |
+PASS computedStyle.textDecorationColor is 'rgb(0, 0, 0)' |
Empty value with different 'currentColor' initial value (green): |
-PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color') is null |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
-PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 128, 0)' |
-PASS computedStyle.webkitTextDecorationColor is 'rgb(0, 128, 0)' |
+PASS e.style.getPropertyCSSValue('text-decoration-color') is null |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]' |
+PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 128, 0)' |
+PASS computedStyle.textDecorationColor is 'rgb(0, 128, 0)' |
PASS successfullyParsed is true |