Skip to content

Commit f406a0b

Browse files
committed
fix(preset-mini): display- rule leak
1 parent 563bc24 commit f406a0b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/preset-mini/src/_rules/static.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const displays: Rule[] = [
1515
['flow-root', { display: 'flow-root' }],
1616
['list-item', { display: 'list-item' }],
1717
['hidden', { display: 'none' }],
18-
[/^display-(.+)$/, ([, c]) => ({ display: h.bracket.cssvar.global(c) || c })],
18+
[/^display-(.+)$/, ([, c]) => ({ display: h.bracket.cssvar.global(c) })],
1919
]
2020

2121
export const appearances: Rule[] = [

test/assets/preset-mini-targets.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,4 +1158,6 @@ export const presetMiniNonTargets = [
11581158

11591159
// overmatch
11601160
'op50>Foo',
1161+
1162+
'display-a',
11611163
]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy