Skip to content

Commit 719c0d4

Browse files
committed
Improve comment
1 parent 1bdc906 commit 719c0d4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/tailwindcss/src/variants.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,8 @@ export function createVariants(theme: Theme): Variants {
381381
let value = variant.value.value
382382
if (value === null) return null
383383

384-
// When `supports-[...]:flex` is used, with `not()`, `and()` or
385-
// `selector()`, then we know that want to use this directly as the
386-
// supports condition as-is.
384+
// When the value starts with `not()`, `selector()`, `font-tech()`, or
385+
// other functions, we can use the value as-is.
387386
if (/^[\w-]*\s*\(/.test(value)) {
388387
// Chrome has a bug where `(condition1)or(condition2)` is not valid, but
389388
// `(condition1) or (condition2)` is supported.

0 commit comments

Comments
 (0)