File tree Expand file tree Collapse file tree 8 files changed +291
-241
lines changed
interpolation-location-error.t Expand file tree Collapse file tree 8 files changed +291
-241
lines changed Original file line number Diff line number Diff line change 1- version=0.26.2
1+ version=0.27.0
22quiet=true
33profile=default
44
Original file line number Diff line number Diff line change @@ -316,6 +316,8 @@ If this test fail means that the module is not in sync with the ppx
316316 CSS. gridRow2(`auto, `auto);
317317 CSS. gridRow2(`num (2 ), `span(`num (2 )));
318318 CSS. gridArea2(`num (1 ), `num (1 ));
319+ let area = `num (33 );
320+ CSS. gridArea(area);
319321 CSS. gridArea2(`num (1 ), `span(`num (1 )));
320322 CSS. gridArea3(`span(`num (1 )), `num (10 ), `num (-1 ));
321323 CSS. gridColumnGap(`zero);
Original file line number Diff line number Diff line change @@ -16,7 +16,46 @@ This test ensures the location of the error is correct
1616 $ dune build
1717 File " input.re" , line 2 , characters 25 -32:
1818 Error: This expression has type [> `gri ]
19- but an expression was expected of type Css_types. Display. t
19+ but an expression was expected of type
20+ [< `block
21+ | `contents
22+ | `flex
23+ | `flow
24+ | `flowRoot
25+ | `grid
26+ | `inline
27+ | `inlineBlock
28+ | `inlineFlex
29+ | `inlineGrid
30+ | `inlineTable
31+ | `listItem
32+ | `mozBox
33+ | `mozInlineBox
34+ | `mozInlineStack
35+ | `msFlexbox
36+ | `msGrid
37+ | `msInlineFlexbox
38+ | `msInlineGrid
39+ | `none
40+ | `ruby
41+ | `rubyBase
42+ | `rubyBaseContainer
43+ | `rubyText
44+ | `rubyTextContainer
45+ | `runIn
46+ | `table
47+ | `tableCaption
48+ | `tableCell
49+ | `tableColumn
50+ | `tableColumnGroup
51+ | `tableFooterGroup
52+ | `tableHeaderGroup
53+ | `tableRow
54+ | `tableRowGroup
55+ | `webkitBox
56+ | `webkitFlex
57+ | `webkitInlineBox
58+ | `webkitInlineFlex ]
2059 The second variant type does not allow tag(s) `gri
2160 [1 ]
2261
Original file line number Diff line number Diff line change @@ -121,3 +121,9 @@ let value = `clip;
121121[% cx {| aspect-ratio: 16 / 9;|} ];
122122
123123[% css {| color: var(--color-link);|} ];
124+
125+ let interpolation = ` px (10 );
126+ [% cx {|
127+ right: $(interpolation);
128+ bottom: $(interpolation);
129+ |} ];
Original file line number Diff line number Diff line change @@ -159,5 +159,11 @@ If this test fail means that the module is not in sync with the ppx
159159 CSS. style([| CSS. aspectRatio(`ratio((16 , 9 )))| ]);
160160
161161 CSS. color(`var({js| -- color-link| js}));
162+
163+ let interpolation = `px(10 );
164+ CSS. style([|
165+ (CSS. right(interpolation): CSS. rule),
166+ (CSS. bottom(interpolation): CSS. rule),
167+ | ]);
162168
163169 $ dune build
You can’t perform that action at this time.
0 commit comments