mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Improve comment
This commit is contained in:
parent
1bdc906976
commit
719c0d4883
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user