Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: LayoutTests/platform/chromium-linux/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-color-expected.txt

Issue 16337002: Revert "Revert "Implement CSS3TextDecorations runtime flag in favor of CSS3_TEXT"" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 Test to make sure text-decoration-color property returns CSSPrimitiveValue prope rly.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 Ancestor should not inherit 'green' value from parent (fallback to initial value ):
7 PASS e.style.getPropertyCSSValue('text-decoration-color') is null
8 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[ object CSSPrimitiveValue]'
9 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb( 0, 0, 0)'
10 PASS computedStyle.textDecorationColor is 'rgb(0, 0, 0)'
11
12 Parent should contain 'green':
13 PASS e.style.textDecorationColor is 'green'
14 PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
15 PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'green'
16 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[ object CSSPrimitiveValue]'
17 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb( 0, 128, 0)'
18 PASS computedStyle.textDecorationColor is 'rgb(0, 128, 0)'
19
20 JavaScript setter tests for valid, initial, invalid and blank values:
21 PASS e.style.getPropertyCSSValue('text-decoration-color') is null
22
23 Valid value 'blue':
24 PASS e.style.textDecorationColor is 'blue'
25 PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
26 PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'blue'
27 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[ object CSSPrimitiveValue]'
28 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb( 0, 0, 255)'
29 PASS computedStyle.textDecorationColor is 'rgb(0, 0, 255)'
30
31 Valid value '#FFFFFF':
32 PASS e.style.textDecorationColor is 'rgb(255, 255, 255)'
33 PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
34 PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(255, 2 55, 255)'
35 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[ object CSSPrimitiveValue]'
36 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb( 255, 255, 255)'
37 PASS computedStyle.textDecorationColor is 'rgb(255, 255, 255)'
38
39 Valid value 'rgb(0, 255, 0)':
40 PASS e.style.textDecorationColor is 'rgb(0, 255, 0)'
41 PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
42 PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 255 , 0)'
43 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[ object CSSPrimitiveValue]'
44 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb( 0, 255, 0)'
45 PASS computedStyle.textDecorationColor is 'rgb(0, 255, 0)'
46
47 Valid value 'rgba(100, 100, 100, 0.5)':
48 PASS e.style.textDecorationColor is 'rgba(100, 100, 100, 0.498039)'
49 PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
50 PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'rgba(100, 100, 100, 0.498039)'
51 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[ object CSSPrimitiveValue]'
52 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgba (100, 100, 100, 0.498039)'
53 PASS computedStyle.textDecorationColor is 'rgba(100, 100, 100, 0.498039)'
54
55 Valid value 'hsl(240, 100%, 50%)':
56 PASS e.style.textDecorationColor is 'rgb(0, 0, 255)'
57 PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
58 PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'rgb(0, 0, 255)'
59 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[ object CSSPrimitiveValue]'
60 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb( 0, 0, 255)'
61 PASS computedStyle.textDecorationColor is 'rgb(0, 0, 255)'
62
63 Valid value 'hsla(240, 100%, 50%, 0.5)':
64 PASS e.style.textDecorationColor is 'rgba(0, 0, 255, 0.498039)'
65 PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSPrimitiveValue]'
66 PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'rgba(0, 0, 255, 0.498039)'
67 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[ object CSSPrimitiveValue]'
68 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgba (0, 0, 255, 0.498039)'
69 PASS computedStyle.textDecorationColor is 'rgba(0, 0, 255, 0.498039)'
70
71 Initial value:
72 PASS e.style.textDecorationColor is 'initial'
73 PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSValue]'
74 PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'initial'
75 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[ object CSSPrimitiveValue]'
76 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb( 0, 0, 0)'
77 PASS computedStyle.textDecorationColor is 'rgb(0, 0, 0)'
78
79 Invalid value (ie. 'unknown'):
80 PASS e.style.textDecorationColor is 'initial'
81 PASS e.style.getPropertyCSSValue('text-decoration-color').toString() is '[object CSSValue]'
82 PASS e.style.getPropertyCSSValue('text-decoration-color').cssText is 'initial'
83 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[ object CSSPrimitiveValue]'
84 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb( 0, 0, 0)'
85 PASS computedStyle.textDecorationColor is 'rgb(0, 0, 0)'
86
87 Empty value (resets the property):
88 PASS e.style.getPropertyCSSValue('text-decoration-color') is null
89 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[ object CSSPrimitiveValue]'
90 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb( 0, 0, 0)'
91 PASS computedStyle.textDecorationColor is 'rgb(0, 0, 0)'
92
93 Empty value with different 'currentColor' initial value (green):
94 PASS e.style.getPropertyCSSValue('text-decoration-color') is null
95 PASS computedStyle.getPropertyCSSValue('text-decoration-color').toString() is '[ object CSSPrimitiveValue]'
96 PASS computedStyle.getPropertyCSSValue('text-decoration-color').cssText is 'rgb( 0, 128, 0)'
97 PASS computedStyle.textDecorationColor is 'rgb(0, 128, 0)'
98
99 PASS successfullyParsed is true
100
101 TEST COMPLETE
102
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698