diff --git a/src/card.css.ts b/src/card.css.ts index f2c6a1db23..fc80f2103c 100644 --- a/src/card.css.ts +++ b/src/card.css.ts @@ -387,20 +387,19 @@ export const vars = {aspectRatio}; export const cardContainer = style({ position: 'relative', - aspectRatio, - '@supports': { - 'not (aspect-ratio: 1 / 1)': { - display: 'flex', - ':before': { - float: 'left', - content: '""', - paddingTop: `calc(100% / ${aspectRatio})`, - }, - ':after': { - display: 'block', - content: '""', - clear: 'both', - }, - }, - }, + ...(aspectRatio + ? { + display: 'flex', + ':before': { + float: 'left', + content: '""', + paddingTop: `calc(100% / ${aspectRatio})`, + }, + ':after': { + display: 'block', + content: '""', + clear: 'both', + }, + } + : {}), });