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

Side by Side Diff: LayoutTests/fast/alignment/parse-justify-content-expected.txt

Issue 636993002: [CSS Grid Layout] Upgrade justify-content parsing to CSS3 Box Alignment spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebaseline some tests expectations. Created 6 years, 1 month 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 that setting and getting justify-content works as expected
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 Test getting justify-content set through CSS
7 PASS getComputedStyle(justifyContentAuto, '').getPropertyValue('justify-content' ) is "start"
8 PASS getComputedStyle(justifyContentBaseline, '').getPropertyValue('justify-cont ent') is "baseline"
9 PASS getComputedStyle(justifyContentLastBaseline, '').getPropertyValue('justify- content') is "last-baseline"
10 PASS getComputedStyle(justifyContentSpaceBetween, '').getPropertyValue('justify- content') is "space-between"
11 PASS getComputedStyle(justifyContentSpaceAround, '').getPropertyValue('justify-c ontent') is "space-around"
12 PASS getComputedStyle(justifyContentSpaceEvenly, '').getPropertyValue('justify-c ontent') is "space-evenly"
13 PASS getComputedStyle(justifyContentStretch, '').getPropertyValue('justify-conte nt') is "stretch"
14 PASS getComputedStyle(justifyContentSpaceBetweenSafe, '').getPropertyValue('just ify-content') is "space-between safe"
15 PASS getComputedStyle(justifyContentSpaceAroundTrue, '').getPropertyValue('justi fy-content') is "space-around true"
16 PASS getComputedStyle(justifyContentStretchTrue, '').getPropertyValue('justify-c ontent') is "stretch true"
17 PASS getComputedStyle(justifyContentStart, '').getPropertyValue('justify-content ') is "start"
18 PASS getComputedStyle(justifyContentEnd, '').getPropertyValue('justify-content') is "end"
19 PASS getComputedStyle(justifyContentCenter, '').getPropertyValue('justify-conten t') is "center"
20 PASS getComputedStyle(justifyContentLeft, '').getPropertyValue('justify-content' ) is "left"
21 PASS getComputedStyle(justifyContentRight, '').getPropertyValue('justify-content ') is "right"
22 PASS getComputedStyle(justifyContentFlexStart, '').getPropertyValue('justify-con tent') is "flex-start"
23 PASS getComputedStyle(justifyContentFlexEnd, '').getPropertyValue('justify-conte nt') is "flex-end"
24 PASS getComputedStyle(justifyContentEndTrue, '').getPropertyValue('justify-conte nt') is "end true"
25 PASS getComputedStyle(justifyContentCenterTrue, '').getPropertyValue('justify-co ntent') is "center true"
26 PASS getComputedStyle(justifyContentRightSafe, '').getPropertyValue('justify-con tent') is "right safe"
27 PASS getComputedStyle(justifyContentLeftTrue, '').getPropertyValue('justify-cont ent') is "left true"
28 PASS getComputedStyle(justifyContentFlexStartTrue, '').getPropertyValue('justify -content') is "flex-start true"
29 PASS getComputedStyle(justifyContentFlexEndSafe, '').getPropertyValue('justify-c ontent') is "flex-end safe"
30 PASS getComputedStyle(justifyContentSpaceBetweenLeft, '').getPropertyValue('just ify-content') is "space-between left"
31 PASS getComputedStyle(justifyContentSpaceAroundCenter, '').getPropertyValue('jus tify-content') is "space-around center"
32 PASS getComputedStyle(justifyContentSpaceEvenlyRight, '').getPropertyValue('just ify-content') is "space-evenly right"
33 PASS getComputedStyle(justifyContentStretchStartSafe, '').getPropertyValue('just ify-content') is "stretch start safe"
34 PASS getComputedStyle(justifyContentSpaceAroundEndTrue, '').getPropertyValue('ju stify-content') is "space-around end true"
35 PASS getComputedStyle(justifyContentSpaceEvenlyFlexStartSafe, '').getPropertyVal ue('justify-content') is "space-evenly flex-start safe"
36
37 Test initial value of justify-content through JS
38 PASS getComputedStyle(element, '').getPropertyValue('justify-content') is "start "
39
40 Test getting and setting justify-content through JS
41 PASS element.style.justifyContent is "center"
42 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "center"
43 PASS element.style.justifyContent is "start true"
44 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start true"
45 PASS element.style.justifyContent is "flex-end safe"
46 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "flex-end safe"
47 PASS element.style.justifyContent is "space-between right safe"
48 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "space-between right safe"
49 PASS element.style.justifyContent is "stretch center"
50 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "stretch center"
51 PASS element.style.justifyContent is "space-around true"
52 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "space-around true"
53 PASS element.style.justifyContent is "auto"
54 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
55 PASS element.style.justifyContent is "auto"
56 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "flex-start"
57 PASS element.style.justifyContent is "auto"
58 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
59 PASS element.style.justifyContent is "flex-end"
60 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "flex-end"
61
62 Test bad combinations of justify-content
63 PASS element.style.justifyContent is ""
64 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
65 PASS element.style.justifyContent is ""
66 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
67 PASS element.style.justifyContent is ""
68 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
69 PASS element.style.justifyContent is ""
70 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
71 PASS element.style.justifyContent is ""
72 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
73 PASS element.style.justifyContent is ""
74 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
75 PASS element.style.justifyContent is ""
76 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
77 PASS element.style.justifyContent is ""
78 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
79 PASS element.style.justifyContent is ""
80 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
81 PASS element.style.justifyContent is ""
82 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
83 PASS element.style.justifyContent is ""
84 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
85 PASS element.style.justifyContent is ""
86 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
87 PASS element.style.justifyContent is ""
88 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
89 PASS element.style.justifyContent is ""
90 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
91 PASS element.style.justifyContent is ""
92 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
93 PASS element.style.justifyContent is ""
94 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
95 PASS element.style.justifyContent is ""
96 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
97 PASS element.style.justifyContent is ""
98 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
99 PASS element.style.justifyContent is ""
100 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
101 PASS element.style.justifyContent is ""
102 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
103 PASS element.style.justifyContent is ""
104 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
105
106 Test the value 'initial'
107 PASS element.style.justifyContent is "stretch center"
108 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "stretch center"
109 PASS element.style.justifyContent is "initial"
110 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
111
112 Test the value 'initial' for grid containers
113 PASS element.style.justifyContent is "space-between left"
114 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "space-between left"
115 PASS element.style.justifyContent is "initial"
116 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "start"
117
118 Test the value 'initial' for flex containers
119 PASS element.style.justifyContent is "right true"
120 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "right true"
121 PASS element.style.justifyContent is "initial"
122 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "flex-start"
123
124 Test the value 'inherit'
125 PASS element.style.justifyContent is "end"
126 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "end"
127 PASS element.style.justifyContent is "inherit"
128 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "end"
129 PASS element.style.justifyContent is "left safe"
130 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "left safe"
131 PASS element.style.justifyContent is "inherit"
132 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "left safe"
133 PASS element.style.justifyContent is "stretch center"
134 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "stretch center"
135 PASS element.style.justifyContent is "inherit"
136 PASS window.getComputedStyle(element, '').getPropertyValue('justify-content') is "stretch center"
137 PASS successfullyParsed is true
138
139 TEST COMPLETE
140
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698