Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / css-grid-layout / non-grid-columns-rows-get-set-expected.txt
1 Test that setting and getting grid-template-columns and grid-template-rows works as expected
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 Test getting grid-template-columns and grid-template-rows set through CSS
7 PASS window.getComputedStyle(gridWithNoneElement, '').getPropertyValue('grid-template-columns') is "none"
8 PASS window.getComputedStyle(gridWithNoneElement, '').getPropertyValue('grid-template-rows') is "none"
9 PASS window.getComputedStyle(gridWithFixedElement, '').getPropertyValue('grid-template-columns') is "10px"
10 PASS window.getComputedStyle(gridWithFixedElement, '').getPropertyValue('grid-template-rows') is "15px"
11 PASS window.getComputedStyle(gridWithPercentElement, '').getPropertyValue('grid-template-columns') is "53%"
12 PASS window.getComputedStyle(gridWithPercentElement, '').getPropertyValue('grid-template-rows') is "27%"
13 PASS window.getComputedStyle(gridWithAutoElement, '').getPropertyValue('grid-template-columns') is "auto"
14 PASS window.getComputedStyle(gridWithAutoElement, '').getPropertyValue('grid-template-rows') is "auto"
15 PASS window.getComputedStyle(gridWithEMElement, '').getPropertyValue('grid-template-columns') is "100px"
16 PASS window.getComputedStyle(gridWithEMElement, '').getPropertyValue('grid-template-rows') is "150px"
17 PASS window.getComputedStyle(gridWithViewPortPercentageElement, '').getPropertyValue('grid-template-columns') is "64px"
18 PASS window.getComputedStyle(gridWithViewPortPercentageElement, '').getPropertyValue('grid-template-rows') is "60px"
19 PASS window.getComputedStyle(gridWithMinMax, '').getPropertyValue('grid-template-columns') is "minmax(10%, 15px)"
20 PASS window.getComputedStyle(gridWithMinMax, '').getPropertyValue('grid-template-rows') is "minmax(20px, 50%)"
21 PASS window.getComputedStyle(gridWithMinContent, '').getPropertyValue('grid-template-columns') is "min-content"
22 PASS window.getComputedStyle(gridWithMinContent, '').getPropertyValue('grid-template-rows') is "min-content"
23 PASS window.getComputedStyle(gridWithMaxContent, '').getPropertyValue('grid-template-columns') is "max-content"
24 PASS window.getComputedStyle(gridWithMaxContent, '').getPropertyValue('grid-template-rows') is "max-content"
25 PASS window.getComputedStyle(gridWithFraction, '').getPropertyValue('grid-template-columns') is "1fr"
26 PASS window.getComputedStyle(gridWithFraction, '').getPropertyValue('grid-template-rows') is "2fr"
27 PASS window.getComputedStyle(gridWithCalc, '').getPropertyValue('grid-template-columns') is "150px"
28 PASS window.getComputedStyle(gridWithCalc, '').getPropertyValue('grid-template-rows') is "75px"
29 PASS window.getComputedStyle(gridWithCalcComplex, '').getPropertyValue('grid-template-columns') is "calc(150px + 50%)"
30 PASS window.getComputedStyle(gridWithCalcComplex, '').getPropertyValue('grid-template-rows') is "calc(75px + 65%)"
31 PASS window.getComputedStyle(gridWithCalcInsideMinMax, '').getPropertyValue('grid-template-columns') is "minmax(10%, 15px)"
32 PASS window.getComputedStyle(gridWithCalcInsideMinMax, '').getPropertyValue('grid-template-rows') is "minmax(20px, 50%)"
33 PASS window.getComputedStyle(gridWithCalcComplexInsideMinMax, '').getPropertyValue('grid-template-columns') is "minmax(10%, calc(15px + 50%))"
34 PASS window.getComputedStyle(gridWithCalcComplexInsideMinMax, '').getPropertyValue('grid-template-rows') is "minmax(calc(20px + 10%), 50%)"
35
36 Test getting wrong values for grid-template-columns and grid-template-rows through CSS (they should resolve to the default: 'none')
37 PASS window.getComputedStyle(gridWithFitContentElement, '').getPropertyValue('grid-template-columns') is "none"
38 PASS window.getComputedStyle(gridWithFitContentElement, '').getPropertyValue('grid-template-rows') is "none"
39 PASS window.getComputedStyle(gridWithFitAvailableElement, '').getPropertyValue('grid-template-columns') is "none"
40 PASS window.getComputedStyle(gridWithFitAvailableElement, '').getPropertyValue('grid-template-rows') is "none"
41
42 Test the initial value
43 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
44 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
45 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is 'none'
46 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is 'none'
47
48 Test getting and setting grid-template-columns and grid-template-rows through JS
49 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "18px"
50 PASS element.style.gridTemplateColumns is "18px"
51 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "66px"
52 PASS element.style.gridTemplateRows is "66px"
53 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "55%"
54 PASS element.style.gridTemplateColumns is "55%"
55 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "40%"
56 PASS element.style.gridTemplateRows is "40%"
57 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "auto"
58 PASS element.style.gridTemplateColumns is "auto"
59 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "auto"
60 PASS element.style.gridTemplateRows is "auto"
61 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "80px"
62 PASS element.style.gridTemplateColumns is "10vw"
63 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "150px"
64 PASS element.style.gridTemplateRows is "25vh"
65 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "min-content"
66 PASS element.style.gridTemplateColumns is "min-content"
67 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "min-content"
68 PASS element.style.gridTemplateRows is "min-content"
69 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "max-content"
70 PASS element.style.gridTemplateColumns is "max-content"
71 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "max-content"
72 PASS element.style.gridTemplateRows is "max-content"
73
74 Test getting and setting grid-template-columns and grid-template-rows to minmax() values through JS
75 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "minmax(55%, 45px)"
76 PASS element.style.gridTemplateColumns is "minmax(55%, 45px)"
77 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "minmax(30px, 40%)"
78 PASS element.style.gridTemplateRows is "minmax(30px, 40%)"
79 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "minmax(220px, 48px)"
80 PASS element.style.gridTemplateColumns is "minmax(22em, 8vh)"
81 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "minmax(80px, 50px)"
82 PASS element.style.gridTemplateRows is "minmax(10vw, 5em)"
83 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "minmax(min-content, 48px)"
84 PASS element.style.gridTemplateColumns is "minmax(min-content, 8vh)"
85 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "minmax(80px, min-content)"
86 PASS element.style.gridTemplateRows is "minmax(10vw, min-content)"
87 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "minmax(220px, max-content)"
88 PASS element.style.gridTemplateColumns is "minmax(22em, max-content)"
89 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "minmax(max-content, 50px)"
90 PASS element.style.gridTemplateRows is "minmax(max-content, 5em)"
91 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "minmax(min-content, max-content)"
92 PASS element.style.gridTemplateColumns is "minmax(min-content, max-content)"
93 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "minmax(max-content, min-content)"
94 PASS element.style.gridTemplateRows is "minmax(max-content, min-content)"
95 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "3600fr"
96 PASS element.style.gridTemplateColumns is "3600fr"
97 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "154fr"
98 PASS element.style.gridTemplateRows is "154fr"
99 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "3.1459fr"
100 PASS element.style.gridTemplateColumns is "3.1459fr"
101 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "2.718fr"
102 PASS element.style.gridTemplateRows is "2.718fr"
103 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "3fr"
104 PASS element.style.gridTemplateColumns is "3fr"
105 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "4fr"
106 PASS element.style.gridTemplateRows is "4fr"
107
108 Test setting grid-template-columns and grid-template-rows to bad values through JS
109 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
110 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
111 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
112 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
113 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
114 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
115 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
116 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
117 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
118 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
119 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
120 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
121 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
122 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
123 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
124 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
125 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
126 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
127 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
128 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
129 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
130 PASS window.getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
131
132 Test setting grid-template-columns and grid-template-rows back to 'none' through JS
133 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "18px"
134 PASS element.style.gridTemplateColumns is "18px"
135 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "66px"
136 PASS element.style.gridTemplateRows is "66px"
137 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is "none"
138 PASS element.style.gridTemplateColumns is "none"
139 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is "none"
140 PASS element.style.gridTemplateRows is "none"
141
142 Test setting grid-template-columns and grid-template-rows to 'inherit' through JS
143 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is '50px (last)'
144 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is '(first) 101%'
145
146 Test setting grid-template-columns and grid-template-rows to 'initial' through JS
147 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is '150% (last)'
148 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is '(first) 1fr'
149 PASS getComputedStyle(element, '').getPropertyValue('grid-template-columns') is 'none'
150 PASS getComputedStyle(element, '').getPropertyValue('grid-template-rows') is 'none'
151 PASS successfullyParsed is true
152
153 TEST COMPLETE
154