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

Side by Side Diff: LayoutTests/fast/css/getComputedStyle/getComputedStyle-text-decoration-expected.txt

Issue 20262002: [css3-text] Implement text-decoration property shorthand (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Julien's 2nd round review fixes Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 Test to make sure text-decoration property returns values properly. 1 Test to make sure text-decoration property returns values 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') is null 7 PASS e.style.getPropertyCSSValue('text-decoration') is null
8 PASS computedStyle.textDecoration is 'none' 8 PASS computedStyle.textDecoration is 'none solid rgb(0, 0, 0)'
9 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSPrimitiveValue]' 9 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
10 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none' 10 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none solid rgb(0, 0, 0)'
11 11
12 Initial value (explicit): 12 Initial value (explicit):
13 PASS e.style.textDecoration is 'initial' 13 PASS e.style.getPropertyCSSValue('text-decoration') is null
14 PASS e.style.getPropertyCSSValue('text-decoration').toString() is '[object CSSVa lue]' 14 PASS computedStyle.textDecoration is 'none solid rgb(0, 0, 0)'
15 PASS e.style.getPropertyCSSValue('text-decoration').cssText is 'initial' 15 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
16 PASS computedStyle.textDecoration is 'none' 16 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none solid rgb(0, 0, 0)'
17 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSPrimitiveValue]'
18 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none'
19 17
20 Value 'none': 18 Value 'none':
21 PASS e.style.textDecoration is 'none' 19 PASS e.style.getPropertyCSSValue('text-decoration') is null
22 PASS e.style.getPropertyCSSValue('text-decoration').toString() is '[object CSSPr imitiveValue]' 20 PASS computedStyle.textDecoration is 'none solid rgb(0, 0, 0)'
23 PASS e.style.getPropertyCSSValue('text-decoration').cssText is 'none' 21 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
24 PASS computedStyle.textDecoration is 'none' 22 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none solid rgb(0, 0, 0)'
25 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSPrimitiveValue]'
26 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none'
27 23
28 Value 'underline': 24 Value 'underline':
29 PASS e.style.textDecoration is 'underline' 25 PASS e.style.getPropertyCSSValue('text-decoration') is null
30 PASS e.style.getPropertyCSSValue('text-decoration').toString() is '[object CSSVa lueList]' 26 PASS computedStyle.textDecoration is 'underline solid rgb(0, 0, 0)'
31 PASS e.style.getPropertyCSSValue('text-decoration').cssText is 'underline'
32 PASS computedStyle.textDecoration is 'underline'
33 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]' 27 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
34 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'underline' 28 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'underline solid rgb(0, 0, 0)'
35 29
36 Value 'overline': 30 Value 'overline':
37 PASS e.style.textDecoration is 'overline' 31 PASS e.style.getPropertyCSSValue('text-decoration') is null
38 PASS e.style.getPropertyCSSValue('text-decoration').toString() is '[object CSSVa lueList]' 32 PASS computedStyle.textDecoration is 'overline solid rgb(0, 0, 0)'
39 PASS e.style.getPropertyCSSValue('text-decoration').cssText is 'overline'
40 PASS computedStyle.textDecoration is 'overline'
41 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]' 33 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
42 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'overline' 34 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'overline s olid rgb(0, 0, 0)'
43 35
44 Value 'line-through': 36 Value 'line-through':
45 PASS e.style.textDecoration is 'line-through' 37 PASS e.style.getPropertyCSSValue('text-decoration') is null
46 PASS e.style.getPropertyCSSValue('text-decoration').toString() is '[object CSSVa lueList]' 38 PASS computedStyle.textDecoration is 'line-through solid rgb(0, 0, 0)'
47 PASS e.style.getPropertyCSSValue('text-decoration').cssText is 'line-through'
48 PASS computedStyle.textDecoration is 'line-through'
49 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]' 39 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
50 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'line-throu gh' 40 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'line-throu gh solid rgb(0, 0, 0)'
51 41
52 Value 'underline overline line-through': 42 Value 'underline overline line-through':
53 PASS e.style.textDecoration is 'underline overline line-through' 43 PASS e.style.getPropertyCSSValue('text-decoration') is null
54 PASS e.style.getPropertyCSSValue('text-decoration').toString() is '[object CSSVa lueList]' 44 PASS computedStyle.textDecoration is 'underline overline line-through solid rgb( 0, 0, 0)'
55 PASS e.style.getPropertyCSSValue('text-decoration').cssText is 'underline overli ne line-through'
56 PASS computedStyle.textDecoration is 'underline overline line-through'
57 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]' 45 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
58 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'underline overline line-through' 46 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'underline overline line-through solid rgb(0, 0, 0)'
59 47
60 Value 'blink' (valid but ignored): 48 Value 'blink' (valid but ignored):
61 PASS e.style.textDecoration is 'blink' 49 PASS e.style.getPropertyCSSValue('text-decoration') is null
62 PASS e.style.getPropertyCSSValue('text-decoration').toString() is '[object CSSVa lueList]' 50 PASS computedStyle.textDecoration is 'none solid rgb(0, 0, 0)'
63 PASS e.style.getPropertyCSSValue('text-decoration').cssText is 'blink' 51 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
64 PASS computedStyle.textDecoration is 'none' 52 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none solid rgb(0, 0, 0)'
65 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSPrimitiveValue]'
66 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none'
67 53
68 Value '': 54 Value '':
69 PASS e.style.getPropertyCSSValue('text-decoration') is null 55 PASS e.style.getPropertyCSSValue('text-decoration') is null
70 PASS computedStyle.textDecoration is 'none' 56 PASS computedStyle.textDecoration is 'none solid rgb(0, 0, 0)'
71 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSPrimitiveValue]' 57 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
72 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none' 58 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none solid rgb(0, 0, 0)'
73 59
74 Parent gets 'underline' value: 60 Parent gets 'underline' value:
75 PASS e.style.textDecoration is 'underline' 61 PASS e.style.getPropertyCSSValue('text-decoration') is null
76 PASS e.style.getPropertyCSSValue('text-decoration').toString() is '[object CSSVa lueList]' 62 PASS computedStyle.textDecoration is 'underline solid rgb(0, 0, 0)'
77 PASS e.style.getPropertyCSSValue('text-decoration').cssText is 'underline'
78 PASS computedStyle.textDecoration is 'underline'
79 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]' 63 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
80 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'underline' 64 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'underline solid rgb(0, 0, 0)'
81 65
82 Ancestor should explicitly inherit value from parent when 'inherit' value is use d: 66 Ancestor should explicitly inherit value from parent when 'inherit' value is use d:
83 PASS e.style.textDecoration is 'inherit' 67 PASS e.style.getPropertyCSSValue('text-decoration') is null
84 PASS e.style.getPropertyCSSValue('text-decoration').toString() is '[object CSSVa lue]' 68 PASS computedStyle.textDecoration is 'underline solid rgb(0, 0, 0)'
85 PASS e.style.getPropertyCSSValue('text-decoration').cssText is 'inherit'
86 PASS computedStyle.textDecoration is 'underline'
87 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]' 69 PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
88 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'underline' 70 PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'underline solid rgb(0, 0, 0)'
89 71
90 PASS successfullyParsed is true 72 PASS successfullyParsed is true
91 73
92 TEST COMPLETE 74 TEST COMPLETE
93 75
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698