@@ -36,10 +36,10 @@ const ROW_CASES: readonly PercentageCase[] = [
3636 } ,
3737 {
3838 name : 'row main-axis "0%" yields zero-width sibling' ,
39- vnode : ui . row (
40- { width : 20 , height : 6 } ,
41- [ ui . box ( { border : "none" , width : "0%" } , [ ] ) , ui . box ( { border : "none" , width : 4 } , [ ] ) ] ,
42- ) ,
39+ vnode : ui . row ( { width : 20 , height : 6 } , [
40+ ui . box ( { border : "none" , width : "0%" } , [ ] ) ,
41+ ui . box ( { border : "none" , width : 4 } , [ ] ) ,
42+ ] ) ,
4343 maxW : 20 ,
4444 maxH : 6 ,
4545 axis : "row" ,
@@ -60,10 +60,10 @@ const ROW_CASES: readonly PercentageCase[] = [
6060 } ,
6161 {
6262 name : 'row "150%" first child can starve later fixed sibling' ,
63- vnode : ui . row (
64- { width : 20 , height : 6 } ,
65- [ ui . box ( { border : "none" , width : "150%" } , [ ] ) , ui . box ( { border : "none" , width : 3 } , [ ] ) ] ,
66- ) ,
63+ vnode : ui . row ( { width : 20 , height : 6 } , [
64+ ui . box ( { border : "none" , width : "150%" } , [ ] ) ,
65+ ui . box ( { border : "none" , width : 3 } , [ ] ) ,
66+ ] ) ,
6767 maxW : 20 ,
6868 maxH : 6 ,
6969 axis : "row" ,
@@ -76,7 +76,9 @@ const ROW_CASES: readonly PercentageCase[] = [
7676 {
7777 name : "row nested percentages 50% -> 50% resolve recursively" ,
7878 vnode : ui . row ( { width : 40 , height : 8 } , [
79- ui . box ( { border : "none" , width : "50%" } , [ ui . box ( { border : "none" , width : "50%" } , [ ui . text ( "x" ) ] ) ] ) ,
79+ ui . box ( { border : "none" , width : "50%" } , [
80+ ui . box ( { border : "none" , width : "50%" } , [ ui . text ( "x" ) ] ) ,
81+ ] ) ,
8082 ] ) ,
8183 maxW : 40 ,
8284 maxH : 8 ,
@@ -88,10 +90,9 @@ const ROW_CASES: readonly PercentageCase[] = [
8890 {
8991 name : "row nested 100% parent + 150% child clamps at parent content" ,
9092 vnode : ui . row ( { width : 20 , height : 8 } , [
91- ui . box (
92- { border : "none" , width : "100%" } ,
93- [ ui . box ( { border : "none" , width : "150%" } , [ ui . text ( "x" ) ] ) ] ,
94- ) ,
93+ ui . box ( { border : "none" , width : "100%" } , [
94+ ui . box ( { border : "none" , width : "150%" } , [ ui . text ( "x" ) ] ) ,
95+ ] ) ,
9596 ] ) ,
9697 maxW : 20 ,
9798 maxH : 8 ,
@@ -111,7 +112,9 @@ const ROW_CASES: readonly PercentageCase[] = [
111112 } ,
112113 {
113114 name : 'row cross-axis "0%" height resolves to zero' ,
114- vnode : ui . row ( { width : 20 , height : 10 } , [ ui . box ( { border : "none" , width : 4 , height : "0%" } , [ ] ) ] ) ,
115+ vnode : ui . row ( { width : 20 , height : 10 } , [
116+ ui . box ( { border : "none" , width : 4 , height : "0%" } , [ ] ) ,
117+ ] ) ,
115118 maxW : 20 ,
116119 maxH : 10 ,
117120 axis : "row" ,
@@ -120,7 +123,9 @@ const ROW_CASES: readonly PercentageCase[] = [
120123 } ,
121124 {
122125 name : 'row cross-axis "150%" height clamps to container height' ,
123- vnode : ui . row ( { width : 20 , height : 10 } , [ ui . box ( { border : "none" , width : 4 , height : "150%" } , [ ] ) ] ) ,
126+ vnode : ui . row ( { width : 20 , height : 10 } , [
127+ ui . box ( { border : "none" , width : 4 , height : "150%" } , [ ] ) ,
128+ ] ) ,
124129 maxW : 20 ,
125130 maxH : 10 ,
126131 axis : "row" ,
@@ -129,10 +134,10 @@ const ROW_CASES: readonly PercentageCase[] = [
129134 } ,
130135 {
131136 name : "row percentage sizing subtracts total gap before allocation" ,
132- vnode : ui . row (
133- { width : 21 , height : 5 , gap : 2 } ,
134- [ ui . box ( { border : "none" , width : "50%" } , [ ] ) , ui . box ( { border : "none" , width : "50%" } , [ ] ) ] ,
135- ) ,
137+ vnode : ui . row ( { width : 21 , height : 5 , gap : 2 } , [
138+ ui . box ( { border : "none" , width : "50%" } , [ ] ) ,
139+ ui . box ( { border : "none" , width : "50%" } , [ ] ) ,
140+ ] ) ,
136141 maxW : 21 ,
137142 maxH : 5 ,
138143 axis : "row" ,
@@ -175,10 +180,10 @@ const COLUMN_CASES: readonly PercentageCase[] = [
175180 } ,
176181 {
177182 name : 'column main-axis "0%" yields zero-height sibling' ,
178- vnode : ui . column (
179- { height : 20 , width : 6 } ,
180- [ ui . box ( { border : "none" , height : "0%" } , [ ] ) , ui . box ( { border : "none" , height : 4 } , [ ] ) ] ,
181- ) ,
183+ vnode : ui . column ( { height : 20 , width : 6 } , [
184+ ui . box ( { border : "none" , height : "0%" } , [ ] ) ,
185+ ui . box ( { border : "none" , height : 4 } , [ ] ) ,
186+ ] ) ,
182187 maxW : 6 ,
183188 maxH : 20 ,
184189 axis : "column" ,
@@ -199,10 +204,10 @@ const COLUMN_CASES: readonly PercentageCase[] = [
199204 } ,
200205 {
201206 name : 'column "150%" first child can starve later fixed sibling' ,
202- vnode : ui . column (
203- { height : 20 , width : 6 } ,
204- [ ui . box ( { border : "none" , height : "150%" } , [ ] ) , ui . box ( { border : "none" , height : 3 } , [ ] ) ] ,
205- ) ,
207+ vnode : ui . column ( { height : 20 , width : 6 } , [
208+ ui . box ( { border : "none" , height : "150%" } , [ ] ) ,
209+ ui . box ( { border : "none" , height : 3 } , [ ] ) ,
210+ ] ) ,
206211 maxW : 6 ,
207212 maxH : 20 ,
208213 axis : "column" ,
@@ -215,10 +220,9 @@ const COLUMN_CASES: readonly PercentageCase[] = [
215220 {
216221 name : "column nested percentages 50% -> 50% resolve recursively" ,
217222 vnode : ui . column ( { height : 40 , width : 8 } , [
218- ui . box (
219- { border : "none" , height : "50%" } ,
220- [ ui . box ( { border : "none" , height : "50%" } , [ ui . text ( "x" ) ] ) ] ,
221- ) ,
223+ ui . box ( { border : "none" , height : "50%" } , [
224+ ui . box ( { border : "none" , height : "50%" } , [ ui . text ( "x" ) ] ) ,
225+ ] ) ,
222226 ] ) ,
223227 maxW : 8 ,
224228 maxH : 40 ,
@@ -230,10 +234,9 @@ const COLUMN_CASES: readonly PercentageCase[] = [
230234 {
231235 name : "column nested 100% parent + 150% child clamps at parent content" ,
232236 vnode : ui . column ( { height : 20 , width : 8 } , [
233- ui . box (
234- { border : "none" , height : "100%" } ,
235- [ ui . box ( { border : "none" , height : "150%" } , [ ui . text ( "x" ) ] ) ] ,
236- ) ,
237+ ui . box ( { border : "none" , height : "100%" } , [
238+ ui . box ( { border : "none" , height : "150%" } , [ ui . text ( "x" ) ] ) ,
239+ ] ) ,
237240 ] ) ,
238241 maxW : 8 ,
239242 maxH : 20 ,
@@ -253,7 +256,9 @@ const COLUMN_CASES: readonly PercentageCase[] = [
253256 } ,
254257 {
255258 name : 'column cross-axis "0%" width resolves to zero' ,
256- vnode : ui . column ( { height : 20 , width : 10 } , [ ui . box ( { border : "none" , height : 4 , width : "0%" } , [ ] ) ] ) ,
259+ vnode : ui . column ( { height : 20 , width : 10 } , [
260+ ui . box ( { border : "none" , height : 4 , width : "0%" } , [ ] ) ,
261+ ] ) ,
257262 maxW : 10 ,
258263 maxH : 20 ,
259264 axis : "column" ,
@@ -262,7 +267,9 @@ const COLUMN_CASES: readonly PercentageCase[] = [
262267 } ,
263268 {
264269 name : 'column cross-axis "150%" width clamps to container width' ,
265- vnode : ui . column ( { height : 20 , width : 10 } , [ ui . box ( { border : "none" , height : 4 , width : "150%" } , [ ] ) ] ) ,
270+ vnode : ui . column ( { height : 20 , width : 10 } , [
271+ ui . box ( { border : "none" , height : 4 , width : "150%" } , [ ] ) ,
272+ ] ) ,
266273 maxW : 10 ,
267274 maxH : 20 ,
268275 axis : "column" ,
@@ -271,10 +278,10 @@ const COLUMN_CASES: readonly PercentageCase[] = [
271278 } ,
272279 {
273280 name : "column percentage sizing subtracts total gap before allocation" ,
274- vnode : ui . column (
275- { height : 21 , width : 5 , gap : 2 } ,
276- [ ui . box ( { border : "none" , height : "50%" } , [ ] ) , ui . box ( { border : "none" , height : "50%" } , [ ] ) ] ,
277- ) ,
281+ vnode : ui . column ( { height : 21 , width : 5 , gap : 2 } , [
282+ ui . box ( { border : "none" , height : "50%" } , [ ] ) ,
283+ ui . box ( { border : "none" , height : "50%" } , [ ] ) ,
284+ ] ) ,
278285 maxW : 5 ,
279286 maxH : 21 ,
280287 axis : "column" ,
0 commit comments