Brandon McConnell 40f506f317
v3: Allow hyphen character in regex pattern to use support queries as is (#13605)
This is the v3 equivalent of PR #13596

Matching for the hyphen character in the existing regex to use support
queries as-is

Resolves #13594

Tests (w/ updated):
-  `supports-[display:grid]:grid`
-  `supports-[transform-origin:5%_5%]:underline`
-  `supports-[not(foo:bar)]:underline`
-  `supports-[(foo:bar)or(bar:baz)]:underline`
-  `supports-[(foo:bar)and(bar:baz)]:underline`
-  `supports-[(foo:bar)_and_(bar:baz)]:grid`
-  `supports-[(foo:bar)_and_(bar:baz)_or(baz:qux)]:grid`
-  `supports-[container-type]:underline`
-  `supports-grid:underline`
-  `supports-[--test]:flex`
-  `supports-[selector(A_>_B)]:underline`
-  `supports-[font-format(opentype)]:grid`
-  `supports-[font-tech(color-COLRv1)]:flex`

---------

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2025-01-28 17:42:09 +01:00
..
2021-12-15 18:13:09 +01:00
2023-01-19 11:42:52 +01:00
2021-09-21 12:37:49 -04:00