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

Side by Side Diff: LayoutTests/fast/css3-text/css3-text-justify/getComputedStyle/getComputedStyle-text-justify-expected.txt

Issue 17155007: [CSS3] Parsing the property, text-justify. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parsingTextJustify
Patch Set: Created 7 years, 5 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 This test checks that text-justify parses properly the properties from CSS 3 Tex t.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 Test the initial value:
7 PASS computedStyle.textJustify is 'auto'
8 PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'auto'
9
10 Value 'auto':
11 PASS e.style.textJustify is 'auto'
12 PASS e.style.getPropertyCSSValue('text-justify').cssText is 'auto'
13 PASS computedStyle.textJustify is 'auto'
14 PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'auto'
15
16 Value 'none':
17 PASS e.style.textJustify is 'none'
18 PASS e.style.getPropertyCSSValue('text-justify').cssText is 'none'
19 PASS computedStyle.textJustify is 'none'
20 PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'none'
21
22 Value 'inter-word':
23 PASS e.style.textJustify is 'inter-word'
24 PASS e.style.getPropertyCSSValue('text-justify').cssText is 'inter-word'
25 PASS computedStyle.textJustify is 'inter-word'
26 PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'inter-word'
27
28 Value 'distribute':
29 PASS e.style.textJustify is 'distribute'
30 PASS e.style.getPropertyCSSValue('text-justify').cssText is 'distribute'
31 PASS computedStyle.textJustify is 'distribute'
32 PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'distribute'
33
34 Invalid value test - '-webkit-left':
35 PASS e.style.textJustify is 'auto'
36 PASS e.style.getPropertyCSSValue('text-justify').cssText is 'auto'
37 PASS computedStyle.textJustify is 'auto'
38 PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'auto'
39
40 Invalid value test - '-webkit-right':
41 PASS e.style.textJustify is 'auto'
42 PASS e.style.getPropertyCSSValue('text-justify').cssText is 'auto'
43 PASS computedStyle.textJustify is 'auto'
44 PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'auto'
45
46 Invalid value test - 'solid':
47 PASS e.style.textJustify is 'auto'
48 PASS e.style.getPropertyCSSValue('text-justify').cssText is 'auto'
49 PASS computedStyle.textJustify is 'auto'
50 PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'auto'
51
52 Invalid value test - 'normal':
53 PASS e.style.textJustify is 'auto'
54 PASS e.style.getPropertyCSSValue('text-justify').cssText is 'auto'
55 PASS computedStyle.textJustify is 'auto'
56 PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'auto'
57
58 Value of ancestor is 'auto':
59 PASS window.getComputedStyle(ancestor).getPropertyCSSValue('text-justify').cssTe xt is 'auto'
60 PASS window.getComputedStyle(child).getPropertyCSSValue('text-justify').cssText is 'auto'
61
62 Value of ancestor is 'none':
63 PASS window.getComputedStyle(ancestor).getPropertyCSSValue('text-justify').cssTe xt is 'none'
64 PASS window.getComputedStyle(child).getPropertyCSSValue('text-justify').cssText is 'none'
65
66 Value of ancestor is 'inter-word':
67 PASS window.getComputedStyle(ancestor).getPropertyCSSValue('text-justify').cssTe xt is 'inter-word'
68 PASS window.getComputedStyle(child).getPropertyCSSValue('text-justify').cssText is 'inter-word'
69
70 Value of ancestor is 'distribute':
71 PASS window.getComputedStyle(ancestor).getPropertyCSSValue('text-justify').cssTe xt is 'distribute'
72 PASS window.getComputedStyle(child).getPropertyCSSValue('text-justify').cssText is 'distribute'
73
74 Value of ancestor is 'inter-word, while child is 'distribute':
75 PASS window.getComputedStyle(ancestor).getPropertyCSSValue('text-justify').cssTe xt is 'inter-word'
76 PASS window.getComputedStyle(child).getPropertyCSSValue('text-justify').cssText is 'distribute'
77
78 Value of ancestor is 'none, while child is 'inter-word':
79 PASS window.getComputedStyle(ancestor).getPropertyCSSValue('text-justify').cssTe xt is 'none'
80 PASS window.getComputedStyle(child).getPropertyCSSValue('text-justify').cssText is 'inter-word'
81
82 Computed value test - 'initial':
83 PASS e.style.textJustify is 'initial'
84 PASS e.style.getPropertyCSSValue('text-justify').cssText is 'initial'
85 PASS computedStyle.textJustify is 'auto'
86 PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'auto'
87
88 Computed value test - 'inherit':
89 PASS e.style.textJustify is 'inherit'
90 PASS e.style.getPropertyCSSValue('text-justify').cssText is 'inherit'
91 PASS computedStyle.textJustify is 'none'
92 PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'none'
93
94 Computed value test - 'inherit':
95 PASS e.style.textJustify is 'inherit'
96 PASS e.style.getPropertyCSSValue('text-justify').cssText is 'inherit'
97 PASS computedStyle.textJustify is 'distribute'
98 PASS computedStyle.getPropertyCSSValue('text-justify').cssText is 'distribute'
99
100 PASS successfullyParsed is true
101
102 TEST COMPLETE
103 hello world
104 inherit test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698