Skip to content

Commit dd9c8d6

Browse files
committed
Add ::-webkit-details-marker’ pseudo to marker variant
1 parent e8715d0 commit dd9c8d6

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

packages/tailwindcss/src/variants.test.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ test('marker', async () => {
5050
5151
.marker\\:flex::marker {
5252
display: flex;
53+
}
54+
55+
.marker\\:flex ::-webkit-details-marker {
56+
display: flex;
57+
}
58+
59+
.marker\\:flex::-webkit-details-marker {
60+
display: flex;
5361
}"
5462
`)
5563
expect(await run(['marker/foo:flex'])).toEqual('')
@@ -2255,6 +2263,14 @@ test('variant order', async () => {
22552263
display: flex;
22562264
}
22572265
2266+
.marker\\:flex ::-webkit-details-marker {
2267+
display: flex;
2268+
}
2269+
2270+
.marker\\:flex::-webkit-details-marker {
2271+
display: flex;
2272+
}
2273+
22582274
.selection\\:flex ::selection {
22592275
display: flex;
22602276
}

packages/tailwindcss/src/variants.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,12 @@ export function createVariants(theme: Theme): Variants {
623623
staticVariant('first-line', ['&::first-line'])
624624

625625
// TODO: Remove alpha vars or no?
626-
staticVariant('marker', ['& *::marker', '&::marker'])
626+
staticVariant('marker', [
627+
'& *::marker',
628+
'&::marker',
629+
'& *::-webkit-details-marker',
630+
'&::-webkit-details-marker',
631+
])
627632

628633
staticVariant('selection', ['& *::selection', '&::selection'])
629634
staticVariant('file', ['&::file-selector-button'])

0 commit comments

Comments
 (0)