@@ -15328,6 +15328,160 @@ test('text', async () => {
1532815328 ) . toEqual ( '' )
1532915329} )
1533015330
15331+ test ( 'text-shadow' , async ( ) => {
15332+ expect (
15333+ await compileCss (
15334+ css `
15335+ @theme {
15336+ --color-red-500 : # ef4444 ;
15337+ --text-shadow-sm : 0px 1px 2px rgb (0 0 0 / 0.1 );
15338+ --text-shadow-xl : 0px 2px 4px rgb (0 0 0 / 0.15 ), 0px 2px 6px rgb (0 0 0 / 0.15 );
15339+ }
15340+ @tailwind utilities;
15341+ ` ,
15342+ [
15343+ // Shadows
15344+ 'text-shadow-sm' ,
15345+ 'text-shadow-xl' ,
15346+ 'text-shadow-none' ,
15347+ 'text-shadow-[12px_12px_#0088cc]' ,
15348+ 'text-shadow-[10px_10px]' ,
15349+ 'text-shadow-[var(--value)]' ,
15350+ 'text-shadow-[shadow:var(--value)]' ,
15351+
15352+ // Colors
15353+ 'text-shadow-red-500' ,
15354+ 'text-shadow-red-500/50' ,
15355+ 'text-shadow-red-500/2.25' ,
15356+ 'text-shadow-red-500/2.5' ,
15357+ 'text-shadow-red-500/2.75' ,
15358+ 'text-shadow-red-500/[0.5]' ,
15359+ 'text-shadow-red-500/[50%]' ,
15360+ 'text-shadow-current' ,
15361+ 'text-shadow-current/50' ,
15362+ 'text-shadow-current/[0.5]' ,
15363+ 'text-shadow-current/[50%]' ,
15364+ 'text-shadow-inherit' ,
15365+ 'text-shadow-transparent' ,
15366+ 'text-shadow-[#0088cc]' ,
15367+ 'text-shadow-[#0088cc]/50' ,
15368+ 'text-shadow-[#0088cc]/[0.5]' ,
15369+ 'text-shadow-[#0088cc]/[50%]' ,
15370+ 'text-shadow-[color:var(--value)]' ,
15371+ 'text-shadow-[color:var(--value)]/50' ,
15372+ 'text-shadow-[color:var(--value)]/[0.5]' ,
15373+ 'text-shadow-[color:var(--value)]/[50%]' ,
15374+ ] ,
15375+ ) ,
15376+ ) . toMatchInlineSnapshot ( `
15377+ ":root, :host {
15378+ --color-red-500: #ef4444;
15379+ }
15380+
15381+ .text-shadow-\\[\\#0088cc\\] {
15382+ --tw-text-shadow-color: #08c;
15383+ }
15384+
15385+ .text-shadow-\\[\\#0088cc\\]\\/50, .text-shadow-\\[\\#0088cc\\]\\/\\[0\\.5\\], .text-shadow-\\[\\#0088cc\\]\\/\\[50\\%\\] {
15386+ --tw-text-shadow-color: oklab(59.9824% -.06725 -.12414 / .5);
15387+ }
15388+
15389+ .text-shadow-\\[10px_10px\\] {
15390+ text-shadow: 10px 10px var(--tw-text-shadow-color, currentcolor);
15391+ }
15392+
15393+ .text-shadow-\\[12px_12px_\\#0088cc\\] {
15394+ text-shadow: 12px 12px var(--tw-text-shadow-color, #08c);
15395+ }
15396+
15397+ .text-shadow-\\[color\\:var\\(--value\\)\\] {
15398+ --tw-text-shadow-color: var(--value);
15399+ }
15400+
15401+ .text-shadow-\\[color\\:var\\(--value\\)\\]\\/50, .text-shadow-\\[color\\:var\\(--value\\)\\]\\/\\[0\\.5\\], .text-shadow-\\[color\\:var\\(--value\\)\\]\\/\\[50\\%\\] {
15402+ --tw-text-shadow-color: color-mix(in oklab, var(--value) 50%, transparent);
15403+ }
15404+
15405+ .text-shadow-\\[shadow\\:var\\(--value\\)\\], .text-shadow-\\[var\\(--value\\)\\] {
15406+ text-shadow: var(--value);
15407+ }
15408+
15409+ .text-shadow-current {
15410+ --tw-text-shadow-color: currentColor;
15411+ }
15412+
15413+ .text-shadow-current\\/50, .text-shadow-current\\/\\[0\\.5\\], .text-shadow-current\\/\\[50\\%\\] {
15414+ --tw-text-shadow-color: color-mix(in oklab, currentColor 50%, transparent);
15415+ }
15416+
15417+ .text-shadow-inherit {
15418+ --tw-text-shadow-color: inherit;
15419+ }
15420+
15421+ .text-shadow-none {
15422+ text-shadow: none;
15423+ }
15424+
15425+ .text-shadow-red-500 {
15426+ --tw-text-shadow-color: var(--color-red-500);
15427+ }
15428+
15429+ .text-shadow-red-500\\/2\\.5 {
15430+ --tw-text-shadow-color: color-mix(in oklab, var(--color-red-500) 2.5%, transparent);
15431+ }
15432+
15433+ .text-shadow-red-500\\/2\\.25 {
15434+ --tw-text-shadow-color: color-mix(in oklab, var(--color-red-500) 2.25%, transparent);
15435+ }
15436+
15437+ .text-shadow-red-500\\/2\\.75 {
15438+ --tw-text-shadow-color: color-mix(in oklab, var(--color-red-500) 2.75%, transparent);
15439+ }
15440+
15441+ .text-shadow-red-500\\/50, .text-shadow-red-500\\/\\[0\\.5\\], .text-shadow-red-500\\/\\[50\\%\\] {
15442+ --tw-text-shadow-color: color-mix(in oklab, var(--color-red-500) 50%, transparent);
15443+ }
15444+
15445+ .text-shadow-sm {
15446+ text-shadow: 0px 1px 2px var(--tw-text-shadow-color, #0000001a);
15447+ }
15448+
15449+ .text-shadow-transparent {
15450+ --tw-text-shadow-color: transparent;
15451+ }
15452+
15453+ .text-shadow-xl {
15454+ text-shadow: 0px 2px 4px var(--tw-text-shadow-color, #00000026), 0px 2px 6px var(--tw-text-shadow-color, #00000026);
15455+ }
15456+
15457+ @property --tw-text-shadow-color {
15458+ syntax: "*";
15459+ inherits: false
15460+ }"
15461+ ` )
15462+ expect (
15463+ await run ( [
15464+ '-shadow-xl' ,
15465+ '-shadow-none' ,
15466+ '-shadow-red-500' ,
15467+ '-shadow-red-500/50' ,
15468+ '-shadow-red-500/[0.5]' ,
15469+ '-shadow-red-500/[50%]' ,
15470+ '-shadow-current' ,
15471+ '-shadow-current/50' ,
15472+ '-shadow-current/[0.5]' ,
15473+ '-shadow-current/[50%]' ,
15474+ '-shadow-inherit' ,
15475+ '-shadow-transparent' ,
15476+ '-shadow-[#0088cc]' ,
15477+ '-shadow-[#0088cc]/50' ,
15478+ '-shadow-[#0088cc]/[0.5]' ,
15479+ '-shadow-[#0088cc]/[50%]' ,
15480+ '-shadow-[var(--value)]' ,
15481+ ] ) ,
15482+ ) . toEqual ( '' )
15483+ } )
15484+
1533115485test ( 'shadow' , async ( ) => {
1533215486 expect (
1533315487 await compileCss (
0 commit comments