From 719c0d488378002ff752e8dc7199c843930bb296 Mon Sep 17 00:00:00 2001 From: Adam Wathan <4323180+adamwathan@users.noreply.github.com> Date: Sat, 27 Apr 2024 12:32:59 -0400 Subject: [PATCH] Improve comment --- packages/tailwindcss/src/variants.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/tailwindcss/src/variants.ts b/packages/tailwindcss/src/variants.ts index cac92a2cd..4738d6d64 100644 --- a/packages/tailwindcss/src/variants.ts +++ b/packages/tailwindcss/src/variants.ts @@ -381,9 +381,8 @@ export function createVariants(theme: Theme): Variants { let value = variant.value.value if (value === null) return null - // When `supports-[...]:flex` is used, with `not()`, `and()` or - // `selector()`, then we know that want to use this directly as the - // supports condition as-is. + // When the value starts with `not()`, `selector()`, `font-tech()`, or + // other functions, we can use the value as-is. if (/^[\w-]*\s*\(/.test(value)) { // Chrome has a bug where `(condition1)or(condition2)` is not valid, but // `(condition1) or (condition2)` is supported.