Skip to content

Commit

Permalink
Improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Apr 27, 2024
1 parent 1bdc906 commit 719c0d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/tailwindcss/src/variants.ts
Expand Up @@ -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.
Expand Down

0 comments on commit 719c0d4

Please sign in to comment.