Skip to content

Commit ac95ff1

Browse files
philipp-spiessthecrypticace
authored andcommitted
Resolve @media followed by an open paren
1 parent 9a1589b commit ac95ff1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/tailwindcss/src/css-functions.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ export function substituteFunctions(ast: AstNode[], resolveThemeValue: ResolveTh
1919
if (
2020
node.selector[0] === '@' &&
2121
(node.selector.startsWith('@media ') ||
22+
node.selector.startsWith('@media(') ||
2223
node.selector.startsWith('@custom-media ') ||
24+
node.selector.startsWith('@custom-media(') ||
2325
node.selector.startsWith('@container ') ||
24-
node.selector.startsWith('@supports ')) &&
26+
node.selector.startsWith('@container(') ||
27+
node.selector.startsWith('@supports ') ||
28+
node.selector.startsWith('@supports(')) &&
2529
node.selector.includes(THEME_FUNCTION_INVOCATION)
2630
) {
2731
node.selector = substituteFunctionsInValue(node.selector, resolveThemeValue)

0 commit comments

Comments
 (0)