File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
__tests__/vendor/tailwind Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,11 @@ describe("Layout - Display", () => {
209209 props : { style : { display : "none" } } ,
210210 } ) ;
211211 } ) ;
212+ test ( "contents" , async ( ) => {
213+ expect ( await renderCurrentTest ( ) ) . toStrictEqual ( {
214+ props : { style : { display : "contents" } } ,
215+ } ) ;
216+ } ) ;
212217 test ( "block" , async ( ) => {
213218 expect ( await renderCurrentTest ( ) ) . toStrictEqual ( {
214219 props : { } ,
@@ -311,12 +316,6 @@ describe("Layout - Display", () => {
311316 warnings : { values : { display : "inline-grid" } } ,
312317 } ) ;
313318 } ) ;
314- test ( "contents" , async ( ) => {
315- expect ( await renderCurrentTest ( ) ) . toStrictEqual ( {
316- props : { } ,
317- warnings : { values : { display : "contents" } } ,
318- } ) ;
319- } ) ;
320319 test ( "list-item" , async ( ) => {
321320 expect ( await renderCurrentTest ( ) ) . toStrictEqual ( {
322321 props : { } ,
Original file line number Diff line number Diff line change @@ -2408,7 +2408,7 @@ export function parseDisplay(
24082408 builder : StylesheetBuilder ,
24092409) {
24102410 if ( value . type === "keyword" ) {
2411- if ( value . value === "none" ) {
2411+ if ( value . value === "none" || value . value === "contents" ) {
24122412 return value . value ;
24132413 } else {
24142414 builder . addWarning ( "value" , value . value ) ;
You can’t perform that action at this time.
0 commit comments