repo
stringclasses
15 values
pull_number
int64
147
18.3k
instance_id
stringlengths
14
31
issue_numbers
listlengths
1
3
base_commit
stringlengths
40
40
patch
stringlengths
289
585k
test_patch
stringlengths
355
6.82M
problem_statement
stringlengths
25
49.4k
hints_text
stringlengths
0
58.9k
created_at
timestamp[us, tz=UTC]date
2014-08-08 22:09:38
2024-06-28 03:13:12
version
stringclasses
110 values
PASS_TO_PASS
listlengths
0
4.82k
FAIL_TO_PASS
listlengths
1
1.06k
language
stringclasses
4 values
image_urls
listlengths
0
4
website links
listlengths
0
4
tailwindlabs/tailwindcss
10,059
tailwindlabs__tailwindcss-10059
[ "10052" ]
40c0cbe272dab4904cbe9e2aaa200ebdb44a25fd
diff --git a/src/lib/generateRules.js b/src/lib/generateRules.js --- a/src/lib/generateRules.js +++ b/src/lib/generateRules.js @@ -733,6 +733,8 @@ function* resolveMatches(candidate, context, original = candidate) { } for (let match of matches) { + let isValid = true + match[1].raws.tailwind = {...
diff --git a/tests/arbitrary-variants.test.js b/tests/arbitrary-variants.test.js --- a/tests/arbitrary-variants.test.js +++ b/tests/arbitrary-variants.test.js @@ -1099,3 +1099,47 @@ it('Arbitrary variants are ordered alphabetically', () => { `) }) }) + +it('Arbitrary variants support multiple attribute selecto...
Fails to compile "expected opening square bracket" with two attribute selectors <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?...
2022-12-12T15:55:19Z
3.2
[]
[ "tests/arbitrary-variants.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/w66a9h6SsL" ]
tailwindlabs/tailwindcss
10,212
tailwindlabs__tailwindcss-10212
[ "10180" ]
5594c3bec95e1db985e49f6836b51d7046d59579
diff --git a/src/lib/defaultExtractor.js b/src/lib/defaultExtractor.js --- a/src/lib/defaultExtractor.js +++ b/src/lib/defaultExtractor.js @@ -28,8 +28,14 @@ function* buildRegExps(context) { : '' let utility = regex.any([ - // Arbitrary properties - /\[[^\s:'"`]+:[^\s]+\]/, + // Arbitrary properti...
diff --git a/tests/default-extractor.test.js b/tests/default-extractor.test.js --- a/tests/default-extractor.test.js +++ b/tests/default-extractor.test.js @@ -488,3 +488,11 @@ test('ruby percent string array', () => { expect(extractions).toContain(`text-[#bada55]`) }) + +test('arbitrary properties followed by squ...
Div content with brackets `[]` prevents arbitrary class from being generated ## This works: https://play.tailwindcss.com/0VLICQ8oUW <img width="810" alt="image" src="https://user-images.githubusercontent.com/111561/209682078-7e43a107-52ff-4006-8c37-ec44414abe12.png"> ## This does not work: https://play.tailwindcs...
Hey @tordans I am trying to understand the problem statement. If you elaborate about the project and the problem it will be helpful for me cause I am new in this project and I am trying to contribute in this project. I did check through your code and didnt find any issue just pust a space before ending "
2023-01-02T14:38:18Z
3.2
[]
[ "tests/default-extractor.test.js" ]
TypeScript
[ "https://user-images.githubusercontent.com/111561/209682078-7e43a107-52ff-4006-8c37-ec44414abe12.png", "https://user-images.githubusercontent.com/111561/209682172-de1dcaaa-6e69-429b-907f-840691e35ceb.png" ]
[ "https://play.tailwindcss.com/0VLICQ8oUW", "https://play.tailwindcss.com/5KJf7xDKv6" ]
tailwindlabs/tailwindcss
10,214
tailwindlabs__tailwindcss-10214
[ "10125" ]
2b885ef2525988758761cc3535383d8d1dc260bf
diff --git a/src/lib/generateRules.js b/src/lib/generateRules.js --- a/src/lib/generateRules.js +++ b/src/lib/generateRules.js @@ -201,6 +201,7 @@ function applyVariant(variant, matches, context) { } if (context.variantMap.has(variant)) { + let isArbitraryVariant = isArbitraryValue(variant) let variantF...
diff --git a/tests/arbitrary-variants.test.js b/tests/arbitrary-variants.test.js --- a/tests/arbitrary-variants.test.js +++ b/tests/arbitrary-variants.test.js @@ -542,6 +542,14 @@ test('classes in arbitrary variants should not be prefixed', () => { <div>should not be red</div> <div class="foo"...
`prefix` option + `modifier` + `arbitrary variant`: extra prefix is generated for classes inside variant `prefix: "tw-",` + `hover:[&.header-is-scrolled_.menu-list_a]:tw-text-[#FF0000]` generates: ```CSS .hover\:\[\&\.header-is-scrolled_\.menu-list_a\]\:tw-text-\[\#FF0000\].tw-header-is-scrolled .tw-menu-list a:hove...
I think I'm having a similar issue with group This is not working: ```html <div class="tw-group is-published"> <div class="tw-hidden group-[.is-published]:block"> Published </div> </div> ``` But found this is working: ```html <div class="tw-group tw-is-published"> <div class="tw-hidden gro...
2023-01-02T20:13:22Z
3.2
[]
[ "tests/format-variant-selector.test.js", "tests/arbitrary-variants.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/kuo2fGhMiZ" ]
tailwindlabs/tailwindcss
10,276
tailwindlabs__tailwindcss-10276
[ "10266" ]
7b3de616e9c26211c605d2378b9ceb4888a8cfa1
diff --git a/src/corePlugins.js b/src/corePlugins.js --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -150,9 +150,13 @@ export let variantPlugins = { let variants = { group: (_, { modifier }) => - modifier ? [`:merge(.group\\/${modifier})`, ' &'] : [`:merge(.group)`, ' &'], + modifier + ...
diff --git a/tests/basic-usage.test.js b/tests/basic-usage.test.js --- a/tests/basic-usage.test.js +++ b/tests/basic-usage.test.js @@ -689,3 +689,27 @@ it('Ring color utilities are generated when using respectDefaultRingColorOpacity `) }) }) + +it('should not crash when group names contain special characters',...
Dynamic nested groups names webpack error **What version of Tailwind CSS are you using?** I'm using the latest v3.2.4 **What build tool (or framework if it abstracts the build tool) are you using?** I'm using Next.js (v13.1.1) with Webpack (v5.74.0) **What version of Node.js are you using?** v18.12.1 ...
Hey! You can’t use concatenation or interpolation to create class names, as Tailwind generates all of your styles at build time and needs to be able to statically extract every class you’re using from your templates: https://tailwindcss.com/docs/content-configuration#dynamic-class-names It shouldn’t cause the bui...
2023-01-09T16:08:52Z
3.2
[]
[ "tests/basic-usage.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
10,288
tailwindlabs__tailwindcss-10288
[ "10267" ]
b05918ab75370bfbecb3d556fec8846cbd285f0d
diff --git a/src/lib/offsets.js b/src/lib/offsets.js --- a/src/lib/offsets.js +++ b/src/lib/offsets.js @@ -13,6 +13,7 @@ import { remapBitfield } from './remap-bitfield.js' * @property {function | undefined} sort The sort function * @property {string|null} value The value we want to compare * @property {string|nu...
diff --git a/tests/arbitrary-variants.test.js b/tests/arbitrary-variants.test.js --- a/tests/arbitrary-variants.test.js +++ b/tests/arbitrary-variants.test.js @@ -1158,3 +1158,201 @@ it('Invalid arbitrary variants selectors should produce nothing instead of faili expect(result.css).toMatchFormattedCss(css``) })...
Order of CSS selectors is not correct with v3.2.x in specific scenarios **What version of Tailwind CSS are you using?** v3.2.4 **What build tool (or framework if it abstracts the build tool) are you using?** I use Vite. But I was able to reproduce the bug with `npx tailwindcss -i ./src/style.css -o ./dist/styl...
Thanks for reporting, I was able to distill the reproduction down to this minimal demo on Tailwind Play: https://play.tailwindcss.com/3ujiz5LanM Can see the sorting issue in the "Generated CSS" tab. Will look at this one next week! Thanks for the reporting...
2023-01-10T14:50:56Z
3.2
[]
[ "tests/arbitrary-variants.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
10,400
tailwindlabs__tailwindcss-10400
[ "10353" ]
667eac5e8845e3928055351e747606fa8864603f
diff --git a/src/corePlugins.js b/src/corePlugins.js --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -168,7 +168,30 @@ export let variantPlugins = { if (!result.includes('&')) result = '&' + result let [a, b] = fn('', extra) - return result.replace(/&(\S+)?/g, (_, pseudo = '') => a...
diff --git a/tests/basic-usage.test.js b/tests/basic-usage.test.js --- a/tests/basic-usage.test.js +++ b/tests/basic-usage.test.js @@ -949,4 +949,66 @@ crosscheck(({ stable, oxide }) => { `) }) }) + + test('detects quoted arbitrary values containing a slash', async () => { + let config = { + con...
double escape happening in attribute value selectors <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?** v3.2.4 **What build to...
2023-01-23T16:11:12Z
3.2
[]
[ "tests/basic-usage.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/sRVqoiJfLV" ]
tailwindlabs/tailwindcss
10,601
tailwindlabs__tailwindcss-10601
[ "10582" ]
66c640b73599e36c6087644d3b2c231cc17b37ff
diff --git a/src/lib/generateRules.js b/src/lib/generateRules.js --- a/src/lib/generateRules.js +++ b/src/lib/generateRules.js @@ -3,10 +3,14 @@ import selectorParser from 'postcss-selector-parser' import parseObjectStyles from '../util/parseObjectStyles' import isPlainObject from '../util/isPlainObject' import pref...
diff --git a/tests/important-modifier.test.js b/tests/important-modifier.test.js --- a/tests/important-modifier.test.js +++ b/tests/important-modifier.test.js @@ -108,4 +108,46 @@ crosscheck(() => { `) }) }) + + test('the important modifier works on utilities using :where()', () => { + let config = {...
Using `:where(.anything)` in a plugin and having `!anything` inside HTML, creates invalid CSS <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are ...
Thanks for reporting! Here's a slightly simplified reproduction for our own reference: https://play.tailwindcss.com/4MqOxcleAv?file=config
2023-02-16T14:48:07Z
3.2
[]
[ "tests/important-modifier.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/Oy7NHRkftL?file=config" ]
tailwindlabs/tailwindcss
10,604
tailwindlabs__tailwindcss-10604
[ "10591" ]
17159ff6c28b2d9700fa489dddf4d6f8d8d6f376
diff --git a/stubs/defaultConfig.stub.js b/stubs/defaultConfig.stub.js --- a/stubs/defaultConfig.stub.js +++ b/stubs/defaultConfig.stub.js @@ -879,8 +879,8 @@ module.exports = { none: 'none', all: 'all', DEFAULT: - 'color, background-color, border-color, outline-color, text-decoration-color,...
diff --git a/tests/basic-usage.oxide.test.css b/tests/basic-usage.oxide.test.css --- a/tests/basic-usage.oxide.test.css +++ b/tests/basic-usage.oxide.test.css @@ -1020,8 +1020,8 @@ backdrop-filter: none; } .transition { - transition-property: color, background-color, border-color, outline-color, text-decoration-c...
Input outlines show during transition with Tailwind 3.2.6 ### What version of @tailwindcss/forms are you using? 0.5.3 ### What version of Node.js are you using? 18.13.0 ### What browser are you using? Chrome ### What operating system are you using? Windows ### Reproduction repository https://play.tailwindcss.c...
This issue is also visible on Heroicons in `Search all icons...` input https://heroicons.com/ I too noticed flickering when `focus:outline-none` and `transition` are used at the same time. Laravel Jetstream uses this combination. There are two ways for a temporary fix: - remove `outline-color` from `transition-pr...
2023-02-16T17:20:27Z
3.2
[]
[ "tests/kitchen-sink.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/irT3FCtMUB" ]
tailwindlabs/tailwindcss
10,903
tailwindlabs__tailwindcss-10903
[ "10899" ]
a785c93b54c770b65364a8c781761dd97ac684d5
diff --git a/src/lib/expandApplyAtRules.js b/src/lib/expandApplyAtRules.js --- a/src/lib/expandApplyAtRules.js +++ b/src/lib/expandApplyAtRules.js @@ -4,6 +4,7 @@ import parser from 'postcss-selector-parser' import { resolveMatches } from './generateRules' import escapeClassName from '../util/escapeClassName' import...
diff --git a/tests/apply.test.js b/tests/apply.test.js --- a/tests/apply.test.js +++ b/tests/apply.test.js @@ -2357,4 +2357,74 @@ crosscheck(({ stable, oxide }) => { `) }) }) + + it('pseudo elements inside apply are moved outside of :is() or :has()', () => { + let config = { + darkMode: 'class',...
after update from 3.2.7 to 3.3.0 pseudo elements `after` and `before` doesn't get `dark: ...` anymore <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind...
Hey, thank you for this bug report! πŸ™ Can you please provide a minimal reproduction repo that shows the issue? Trying to reproduce it and seems to work as expected: https://play.tailwindcss.com/d5HtkTSI6a > Hey, thank you for this bug report! πŸ™ > > Can you please provide a minimal reproduction repo that show...
2023-03-29T14:53:21Z
3.3
[]
[ "tests/important-selector.test.js", "tests/apply.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
10,943
tailwindlabs__tailwindcss-10943
[ "10937" ]
d7310491b5cd2c0fe96b398de8bbb6caf2bdee4d
diff --git a/src/util/formatVariantSelector.js b/src/util/formatVariantSelector.js --- a/src/util/formatVariantSelector.js +++ b/src/util/formatVariantSelector.js @@ -337,6 +337,9 @@ let pseudoElementExceptions = [ '::-webkit-scrollbar-track-piece', '::-webkit-scrollbar-corner', '::-webkit-resizer', + + // Ol...
diff --git a/tests/apply.test.js b/tests/apply.test.js --- a/tests/apply.test.js +++ b/tests/apply.test.js @@ -2427,4 +2427,34 @@ crosscheck(({ stable, oxide }) => { `) }) }) + + stable.test('::ng-deep pseudo element is left alone', () => { + let config = { + darkMode: 'class', + content: [...
@apply method is invalid after upgrade to 3.3.1 <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?** v3.3.1 **What build tool (o...
2023-04-04T16:29:09Z
3.3
[]
[ "tests/apply.test.js" ]
TypeScript
[ "https://user-images.githubusercontent.com/15225835/229733712-d9d19b15-8461-4113-b2a5-7298d8cb71c4.png", "https://user-images.githubusercontent.com/15225835/229733180-e01260c1-4772-45dd-848c-32ceb7696db1.png" ]
[]
tailwindlabs/tailwindcss
10,962
tailwindlabs__tailwindcss-10962
[ "10960" ]
467a39e0d59a9fdc42deef3a9c7d51c44ace90e8
diff --git a/jest/global-setup.js b/jest/global-setup.js --- a/jest/global-setup.js +++ b/jest/global-setup.js @@ -1,6 +1,9 @@ let { execSync } = require('child_process') +let state = { ran: false } module.exports = function () { + if (state.ran) return execSync('npm run build:rust', { stdio: 'ignore' }) exe...
diff --git a/tests/apply.test.js b/tests/apply.test.js --- a/tests/apply.test.js +++ b/tests/apply.test.js @@ -2428,7 +2428,7 @@ crosscheck(({ stable, oxide }) => { }) }) - stable.test('::ng-deep pseudo element is left alone', () => { + stable.test('::ng-deep, ::deep, ::v-deep pseudo elements are left alone...
3.3.1 not handling pseudo-elements properly **What version of Tailwind CSS are you using?** `3.3.1` **What build tool (or framework if it abstracts the build tool) are you using?** tailwindcss **What version of Node.js are you using?** `v18.14.0` #### Steps to Repro ```bash mkdir repro cd repro...
2023-04-06T12:31:05Z
3.3
[ "tests/format-variant-selector.test.js" ]
[ "tests/parallel-variants.test.js", "tests/apply.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
11,111
tailwindlabs__tailwindcss-11111
[ "11107" ]
18677447063f7d08252a3f34c34d7deb0bcd6995
diff --git a/src/util/pseudoElements.js b/src/util/pseudoElements.js --- a/src/util/pseudoElements.js +++ b/src/util/pseudoElements.js @@ -26,17 +26,17 @@ /** @type {Record<string, PseudoProperty[]>} */ let elementProperties = { '::after': ['terminal', 'jumpable'], - '::backdrop': ['terminal'], + '::backdrop': [...
diff --git a/tests/format-variant-selector.test.js b/tests/format-variant-selector.test.js --- a/tests/format-variant-selector.test.js +++ b/tests/format-variant-selector.test.js @@ -352,6 +352,10 @@ crosscheck(() => { ${'#app :is(:is(.dark &)::before)'} | ${'#app :is(:is(.dark &))::before'}...
Unexpected behavior of pseudo-elements such as marker **What version of Tailwind CSS are you using?** For example: v3.3.2 **What build tool (or framework if it abstracts the build tool) are you using?** vite 4.3.3, vue 3.2.47, postcss 8.4.23 **What version of Node.js are you using?** v20.0.0 **What br...
Hey, thank you for this bug report! πŸ™ If you swap the variants around then it behaves as expected: https://play.tailwindcss.com/u1trU3XrlL however I do think we regressed on this. --- @thecrypticace Pinging you because I know you worked on this recently to fix other bugs. We can also pair on this later today...
2023-04-27T13:34:47Z
3.3
[]
[ "tests/format-variant-selector.test.js" ]
TypeScript
[ "https://user-images.githubusercontent.com/36815907/234824052-0245f5dc-5045-4a89-b241-a21edf9218e5.png", "https://user-images.githubusercontent.com/36815907/234824207-9d53f56f-edb1-4898-816d-162b81f4fc1a.png" ]
[ "https://play.tailwindcss.com/3SbW3c1AhG](https://play.tailwindcss.com/3SbW3c1AhG", "https://play.tailwindcss.com/1nJxOORQv7](https://play.tailwindcss.com/1nJxOORQv7" ]
tailwindlabs/tailwindcss
11,157
tailwindlabs__tailwindcss-11157
[ "11027" ]
cdca9cbcfe331b54ca4df80bc720f8cd78e303a0
diff --git a/src/lib/evaluateTailwindFunctions.js b/src/lib/evaluateTailwindFunctions.js --- a/src/lib/evaluateTailwindFunctions.js +++ b/src/lib/evaluateTailwindFunctions.js @@ -1,7 +1,7 @@ import dlv from 'dlv' import didYouMean from 'didyoumean' import transformThemeValue from '../util/transformThemeValue' -impor...
diff --git a/tests/evaluateTailwindFunctions.test.js b/tests/evaluateTailwindFunctions.test.js --- a/tests/evaluateTailwindFunctions.test.js +++ b/tests/evaluateTailwindFunctions.test.js @@ -1383,5 +1383,36 @@ crosscheck(({ stable, oxide }) => { // 4. But we've not received any further logs about it expec...
Incorrect parsing of theme functions within calc operations without spaces <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?** v3....
2023-05-04T13:50:14Z
3.3
[ "tests/source-maps.test.js" ]
[ "tests/evaluateTailwindFunctions.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/", "https://play.tailwindcss.com/sQrIVhIaM7?file=css" ]
tailwindlabs/tailwindcss
11,345
tailwindlabs__tailwindcss-11345
[ "11331" ]
eb8d9294c51c05713b93eb7478993b76be9d1bab
diff --git a/src/util/pseudoElements.js b/src/util/pseudoElements.js --- a/src/util/pseudoElements.js +++ b/src/util/pseudoElements.js @@ -19,12 +19,13 @@ // **Jumpable** // Any terminal element may "jump" over combinators when moving to the end of the selector // -// This is a backwards-compat quirk of :before and ...
diff --git a/tests/util/apply-important-selector.test.js b/tests/util/apply-important-selector.test.js --- a/tests/util/apply-important-selector.test.js +++ b/tests/util/apply-important-selector.test.js @@ -16,6 +16,10 @@ it.each` ${':is(.foo) :is(.bar)'} | ${'#app :is(:is(.foo) :is(.bar))'} ...
Some arbitrary pseudo-elements are moved inside `:is()` when using `important` config option, breaking the selector <blockquote><details><summary><b>Tailwind CSS/browser/device version information</b></summary></br > **What version of Tailwind CSS are you using?** v3.3.2 **What build tool (or framework if it a...
I meet the same problem..Even using the @csstools/postcss-is-pseudo-class plugin can't convert successfully invalid:is()
2023-06-02T18:11:03Z
3.3
[]
[ "tests/util/apply-important-selector.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/gVUTg4DLNK", "https://play.tailwindcss.com/yOqpv2N25J" ]
tailwindlabs/tailwindcss
11,454
tailwindlabs__tailwindcss-11454
[ "11384" ]
6722e78b35c70ac4b1bd4060f9cda9019f326241
diff --git a/src/corePlugins.js b/src/corePlugins.js --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -21,6 +21,7 @@ import { formatBoxShadowValue, parseBoxShadowValue } from './util/parseBoxShadow import { removeAlphaVariables } from './util/removeAlphaVariables' import { flagEnabled } from './featureFlags' imp...
diff --git a/tests/format-variant-selector.test.js b/tests/format-variant-selector.test.js --- a/tests/format-variant-selector.test.js +++ b/tests/format-variant-selector.test.js @@ -4,7 +4,7 @@ it('should be possible to add a simple variant to a simple selector', () => { let selector = '.text-center' let candida...
Group Class with prefix config doesn't work **What version of Tailwind CSS are you using?** For example: v3.3.2 **What build tool (or framework if it abstracts the build tool) are you using?** For example: postcss-cli 8.3.1 **What version of Node.js are you using?** For example: v14.5.0 **What operati...
I'm having this issue as well, except in my case I'm using custom variants as described [here](https://tailwindcss.com/docs/plugins#adding-variants). `hocus` works just fine, but `group-hocus` does not work as described in the [docs](https://tailwindcss.com/docs/plugins#parent-and-sibling-states). [Tailwind Play]...
2023-06-19T13:32:46Z
3.3
[]
[ "tests/format-variant-selector.test.js", "tests/getVariants.test.js", "tests/prefix.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/cxSWYn1qBg" ]
tailwindlabs/tailwindcss
11,470
tailwindlabs__tailwindcss-11470
[ "11466" ]
eae2b7a3f4f3a2981614a580a9f5534b9ffe0586
diff --git a/src/corePlugins.js b/src/corePlugins.js --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -933,7 +933,7 @@ export let corePlugins = { }, animation: ({ matchUtilities, theme, config }) => { - let prefixName = (name) => `${config('prefix')}${escapeClassName(name)}` + let prefixName = (name) ...
diff --git a/tests/animations.test.js b/tests/animations.test.js --- a/tests/animations.test.js +++ b/tests/animations.test.js @@ -277,3 +277,33 @@ test('with dots in the name and prefix', () => { `) }) }) + +test('special character prefixes are escaped in animation names', () => { + let config = { + prefi...
Animation Names Won't Be Escaped If Prefix Contains Especial Characters **What version of Tailwind CSS are you using?** v3.3.2 **What build tool (or framework if it abstracts the build tool) are you using?** Tailwind Play **What version of Node.js are you using?** N/A **What browser are you using?** ...
2023-06-21T14:08:19Z
3.3
[]
[ "tests/animations.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/ojvPuQftlm" ]
tailwindlabs/tailwindcss
12,049
tailwindlabs__tailwindcss-12049
[ "12048" ]
5366d242c25aa5e008c38a53cdfeca1cf0a22e44
diff --git a/src/util/color.js b/src/util/color.js --- a/src/util/color.js +++ b/src/util/color.js @@ -5,7 +5,7 @@ let SHORT_HEX = /^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i let VALUE = /(?:\d+|\d*\.\d+)%?/ let SEP = /(?:\s*,\s*|\s+)/ let ALPHA_SEP = /\s*[,/]\s*/ -let CUSTOM_PROPERTY = /var\(--(?:[^ )]*?)\)/ +let C...
diff --git a/tests/opacity.test.js b/tests/opacity.test.js --- a/tests/opacity.test.js +++ b/tests/opacity.test.js @@ -1045,3 +1045,21 @@ it('can replace the potential alpha value in rgba/hsla syntax', async () => { } `) }) + +it('variables with variable fallback values can use opacity modifier', async () => {...
Background opacity modifier does not work with CSS variable's fallback value <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?** v...
2023-09-20T20:17:08Z
3.3
[]
[ "tests/opacity.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/djB8sJngwG" ]
tailwindlabs/tailwindcss
12,105
tailwindlabs__tailwindcss-12105
[ "12099" ]
61dc99f4adbebdbcfeb899f3bcd64167b49d758c
diff --git a/src/lib/setupContextUtils.js b/src/lib/setupContextUtils.js --- a/src/lib/setupContextUtils.js +++ b/src/lib/setupContextUtils.js @@ -147,43 +147,45 @@ function getClasses(selector, mutate) { return parser.transformSync(selector) } +/** + * Ignore everything inside a :not(...). This allows you to wri...
diff --git a/tests/basic-usage.test.js b/tests/basic-usage.test.js --- a/tests/basic-usage.test.js +++ b/tests/basic-usage.test.js @@ -760,3 +760,35 @@ test('handled quoted arbitrary values containing escaped spaces', async () => { ` ) }) + +test('Skips classes inside :not() when nested inside an at-rule',...
Tailwind looks for classes inside `:not()` in utilities and components when in at-rules <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you us...
Hey, thanks for reporting this. > Tailwind searches for importance for things like disabled in places that are not classnames. This is by design. Not everyone uses Tailwind in HTML but in JSX, Svelte, Pug, etc… Parsing files to find class names and to do so properly would have significant limitations as we would ...
2023-09-28T14:26:04Z
3.3
[]
[ "tests/basic-usage.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/Tg2m8Otzun" ]
tailwindlabs/tailwindcss
12,112
tailwindlabs__tailwindcss-12112
[ "12110" ]
d32228628ed45941a3ca1d2ca9d946d72c0d0cfa
diff --git a/src/lib/expandApplyAtRules.js b/src/lib/expandApplyAtRules.js --- a/src/lib/expandApplyAtRules.js +++ b/src/lib/expandApplyAtRules.js @@ -553,6 +553,13 @@ function processApply(root, context, localCache) { ? parent.selector.slice(importantSelector.length) : parent.selector...
diff --git a/tests/apply.test.js b/tests/apply.test.js --- a/tests/apply.test.js +++ b/tests/apply.test.js @@ -2081,3 +2081,55 @@ test('::ng-deep, ::deep, ::v-deep pseudo elements are left alone', () => { `) }) }) + +test('should not break replacing important selector when the same as the parent selector (pseu...
Compilation error for rule reusing important selector within a layer and using @apply **What version of Tailwind CSS are you using?** v3.3.3 Reproduced on current play.tailwindcss.com version **What build tool (or framework if it abstracts the build tool) are you using?** vite v4.4.9 postcss v8.4.29 *...
2023-09-29T15:54:22Z
3.3
[]
[ "tests/apply.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/xsicGQjVTh" ]
tailwindlabs/tailwindcss
12,113
tailwindlabs__tailwindcss-12113
[ "12111" ]
457d2b1b1c5dc09b2edbc92f1dd1499a00cd4ef0
diff --git a/src/lib/generateRules.js b/src/lib/generateRules.js --- a/src/lib/generateRules.js +++ b/src/lib/generateRules.js @@ -815,10 +815,19 @@ function applyFinalFormat(match, { context, candidate }) { } try { - rule.selector = finalizeSelector(rule.selector, finalFormat, { + let selector = ...
diff --git a/tests/basic-usage.test.js b/tests/basic-usage.test.js --- a/tests/basic-usage.test.js +++ b/tests/basic-usage.test.js @@ -792,3 +792,46 @@ test('Skips classes inside :not() when nested inside an at-rule', async () => { expect(result.css).toMatchFormattedCss(css``) }) + +test('Irrelevant rules are rem...
Combination of TW JS based config and a class causes malformed CSS **What version of Tailwind CSS are you using?** v3.3.3 **What build tool (or framework if it abstracts the build tool) are you using?** Vite v4.4.9 **What version of Node.js are you using?** v20.7.0 **What browser are you using?** A...
2023-09-29T20:14:25Z
3.3
[]
[ "tests/basic-usage.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/i6OoVDdQbc?file=config", "https://play.tailwindcss.com/jZXL8Axggn" ]
tailwindlabs/tailwindcss
12,324
tailwindlabs__tailwindcss-12324
[ "12318" ]
8f788e27b09d1a09a23f0e33d127145d36fe1a03
diff --git a/src/util/dataTypes.js b/src/util/dataTypes.js --- a/src/util/dataTypes.js +++ b/src/util/dataTypes.js @@ -78,7 +78,7 @@ export function normalize(value, context = null, isRoot = true) { /** * Add spaces around operators inside math functions - * like calc() that do not follow an operator or '('. + * l...
diff --git a/tests/normalize-data-types.test.js b/tests/normalize-data-types.test.js --- a/tests/normalize-data-types.test.js +++ b/tests/normalize-data-types.test.js @@ -68,6 +68,9 @@ let table = [ ['calc(theme(spacing.foo-2))', 'calc(theme(spacing.foo-2))'], ['calc(theme(spacing.foo-bar))', 'calc(theme(spacing....
Arbituray Value using Clamp() doesn't work if there is a negative value <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?** v3.3.3 ...
Hey @rexsoi! I noticed that the example you shared contains incorrect CSS. If you want to perform computations within the `clamp` function, wrap it with `calc`: `mt-[clamp(0.25rem,-0.6731rem+4.1026vw,4.25rem)]` => `mt-[clamp(0.25rem,calc(-0.6731rem+4.1026vw),4.25rem)]` @alex-krasikau Nah, that's not true (it may ha...
2023-10-30T14:32:58Z
3.3
[]
[ "tests/normalize-data-types.test.js" ]
TypeScript
[ "https://snipboard.io/zXFA3o.jpg", "https://snipboard.io/SEMTQZ.jpg" ]
[ "https://play.tailwindcss.com/BuKHeMD2uv" ]
tailwindlabs/tailwindcss
12,515
tailwindlabs__tailwindcss-12515
[ "12362" ]
b2b37e04e4d861901bb76781d34faa638a251a35
diff --git a/src/util/pluginUtils.js b/src/util/pluginUtils.js --- a/src/util/pluginUtils.js +++ b/src/util/pluginUtils.js @@ -87,6 +87,22 @@ function isArbitraryValue(input) { function splitUtilityModifier(modifier) { let slashIdx = modifier.lastIndexOf('/') + // If the `/` is inside an arbitrary, we want to fi...
diff --git a/tests/arbitrary-values.test.js b/tests/arbitrary-values.test.js --- a/tests/arbitrary-values.test.js +++ b/tests/arbitrary-values.test.js @@ -639,6 +639,21 @@ it('should support underscores in arbitrary modifiers', () => { }) }) +it('should support slashes in arbitrary modifiers', () => { + let conf...
`/` is not allowed in arbitrary modifier Version: 3.3.5 Repro: https://play.tailwindcss.com/yLjHBexR1d Not really something I wrote in real life, just something I though of when testing edge cases of my own implementation. So could be considered as not supported, this is issue is just to let you know. Feel free to...
2023-11-30T16:14:02Z
3.3
[]
[ "tests/arbitrary-values.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/yLjHBexR1d" ]
tailwindlabs/tailwindcss
12,639
tailwindlabs__tailwindcss-12639
[ "12623" ]
a091db5df4651fde85fcf917b11fdaa210b79623
diff --git a/src/lib/generateRules.js b/src/lib/generateRules.js --- a/src/lib/generateRules.js +++ b/src/lib/generateRules.js @@ -118,10 +118,20 @@ function applyImportant(matches, classCandidate) { let result = [] + function isInKeyframes(rule) { + return rule.parent && rule.parent.type === 'atrule' && rul...
diff --git a/tests/important-modifier.test.js b/tests/important-modifier.test.js --- a/tests/important-modifier.test.js +++ b/tests/important-modifier.test.js @@ -147,3 +147,32 @@ test('the important modifier works on utilities using :where()', () => { `) }) }) + +test('the important modifier does not break ke...
important modifier on animation breaks keyframes <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?** v3.4.0 **What build tool (...
2023-12-21T16:36:36Z
3.3
[]
[ "tests/important-modifier.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/4mir5NtQdV" ]
tailwindlabs/tailwindcss
12,704
tailwindlabs__tailwindcss-12704
[ "12665" ]
b52a78b56f329af8714bf2664a673bd2f2b2e336
diff --git a/src/util/dataTypes.js b/src/util/dataTypes.js --- a/src/util/dataTypes.js +++ b/src/util/dataTypes.js @@ -107,6 +107,13 @@ function normalizeMathOperatorSpacing(value) { 'keyboard-inset-left', 'keyboard-inset-width', 'keyboard-inset-height', + + 'radial-gradient', + 'linear-gradient', ...
diff --git a/tests/normalize-data-types.test.js b/tests/normalize-data-types.test.js --- a/tests/normalize-data-types.test.js +++ b/tests/normalize-data-types.test.js @@ -86,6 +86,16 @@ let table = [ // Prevent formatting keywords ['minmax(min-content,25%)', 'minmax(min-content,25%)'], + // Prevent formatting ...
Arbitrary values for 'radial-gradient' generate incorrect CSS <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?** 3.4.0 **What ...
Here's an even more minimal reproduction for when we get a chance to look at this properly: https://play.tailwindcss.com/WgsZXMdp0Y Culprit seems to be the presence of `calc` in the first gradient β€” without that the second `radial-gradient` has no spaces like expected.
2024-01-03T17:51:46Z
3.3
[]
[ "tests/normalize-data-types.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/wORjugi1Xl" ]
tailwindlabs/tailwindcss
13,379
tailwindlabs__tailwindcss-13379
[ "13037" ]
97607f1cfb30103db96747c9b9e50fefa117fbb4
diff --git a/src/corePlugins.js b/src/corePlugins.js --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -270,7 +270,7 @@ export let variantPlugins = { addVariant('dark', selector) } else if (mode === 'class') { // Old behavior - addVariant('dark', `:is(${selector} &)`) + addVariant('dark'...
diff --git a/tests/apply.test.js b/tests/apply.test.js --- a/tests/apply.test.js +++ b/tests/apply.test.js @@ -2212,3 +2212,40 @@ test('applying user defined classes with nested CSS should result in an error', `) }) }) + +test('applying classes with class-based dark variant to pseudo elements', async () => { +...
dark selector does not work correctly in @apply starting from version 3.3.0 <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?**: v3.3...
Definitely a real bug, thanks for reporting! My gut is we can fix this by updating the `class` strategy implementation to work like the `selector` strategy implementation, where we put the `&` at the front: ```diff } else if (mode === 'class') { - addVariant('dark', `:is(${selector} &)`) + addVariant('dark'...
2024-03-27T14:14:41Z
3.4
[]
[ "tests/dark-mode.test.js", "tests/apply.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/8lfHYybqfC" ]
tailwindlabs/tailwindcss
13,740
tailwindlabs__tailwindcss-13740
[ "13716" ]
f1f419a9ecfcd00a2001ee96ab252739fca47564
diff --git a/src/util/pluginUtils.js b/src/util/pluginUtils.js --- a/src/util/pluginUtils.js +++ b/src/util/pluginUtils.js @@ -124,7 +124,7 @@ export function parseColorFormat(value) { if (typeof value === 'string' && value.includes('<alpha-value>')) { let oldValue = value - return ({ opacityValue = 1 }) =...
diff --git a/tests/opacity.test.js b/tests/opacity.test.js --- a/tests/opacity.test.js +++ b/tests/opacity.test.js @@ -673,6 +673,30 @@ it('should be possible to use an <alpha-value> as part of the color definition w }) }) +it('should be possible to use multiple <alpha-value>s as part of the color definition with...
`<alpha-value>` is not recognized on reuse **What version of Tailwind CSS are you using?** v3.4.3 (last) **Reproduction URL** https://play.tailwindcss.com/iK3QZJynRz?file=config **Describe your issue** <img width="800" alt="image" src="https://github.com/tailwindlabs/tailwindcss/assets/625005/d43b6f8d-47...
2024-05-24T23:31:51Z
3.4
[]
[ "tests/opacity.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/iK3QZJynRz?file=config" ]
tailwindlabs/tailwindcss
13,770
tailwindlabs__tailwindcss-13770
[ "13769" ]
9fda4616eb5706223374c921c9ee4d90903f6fee
diff --git a/src/corePlugins.js b/src/corePlugins.js --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -434,23 +434,40 @@ export let variantPlugins = { ) }, - hasVariants: ({ matchVariant }) => { - matchVariant('has', (value) => `&:has(${normalize(value)})`, { values: {} }) + hasVariants: ({ matchVari...
diff --git a/tests/prefix.test.js b/tests/prefix.test.js --- a/tests/prefix.test.js +++ b/tests/prefix.test.js @@ -637,3 +637,132 @@ test('does not prefix arbitrary group/peer classes', async () => { } `) }) + +test('does not prefix has-* variants with arbitrary values', async () => { + let config = { + pr...
Classes are prefixed when using `has-*` variants with arbitrary values **What version of Tailwind CSS are you using?** v3.4.3 **What build tool (or framework if it abstracts the build tool) are you using?** Tested using `play.tailwindcss.com` and added some test to `tailwindcss` repo. **What version of Node...
2024-05-31T06:59:16Z
3.4
[]
[ "tests/prefix.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/abhsA5hh21", "https://play.tailwindcss.com/TJ9YW9YcGi" ]
tailwindlabs/tailwindcss
13,781
tailwindlabs__tailwindcss-13781
[ "13754" ]
669109efdd8f89c6949ae496eb1e95b528603976
diff --git a/src/corePlugins.js b/src/corePlugins.js --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -741,11 +741,19 @@ export let corePlugins = { zIndex: createUtilityPlugin('zIndex', [['z', ['zIndex']]], { supportsNegativeValues: true }), order: createUtilityPlugin('order', undefined, { supportsNegativeVal...
diff --git a/tests/negative-prefix.test.js b/tests/negative-prefix.test.js --- a/tests/negative-prefix.test.js +++ b/tests/negative-prefix.test.js @@ -360,3 +360,27 @@ test('addUtilities without negative prefix + variant + negative prefix in conten expect(result.css).toMatchCss(css``) }) + +test('negative col/row...
Col-end does not support negative values This is a very small issue, col-end does not support negative values out of the box, but negative values makes a lot of sense there. This happens on **v3.4.3**. https://play.tailwindcss.com/8L8o0VhDfr The code is here: ~~~ html <div class="grid grid-cols-3"> <div cl...
2024-06-03T15:22:42Z
3.4
[]
[ "tests/negative-prefix.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/8L8o0VhDfr" ]
tailwindlabs/tailwindcss
13,826
tailwindlabs__tailwindcss-13826
[ "13818" ]
ff6f085da2afe4149ab2791b8b6b74836dbbba9f
diff --git a/src/util/dataTypes.js b/src/util/dataTypes.js --- a/src/util/dataTypes.js +++ b/src/util/dataTypes.js @@ -19,6 +19,7 @@ function isCSSFunction(value) { // More info: // - https://drafts.csswg.org/scroll-animations/#propdef-timeline-scope // - https://developer.mozilla.org/en-US/docs/Web/CSS/timeline-sco...
diff --git a/tests/normalize-data-types.test.js b/tests/normalize-data-types.test.js --- a/tests/normalize-data-types.test.js +++ b/tests/normalize-data-types.test.js @@ -112,7 +112,18 @@ it('should not automatically inject the `var()` for properties that accept `<das { raw: '[color:--foo]' }, // Automa...
Arbitrary value for `anchor-name` outputs as custom variable instead of identifier value <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you u...
MOhammadreza Xeradm@nd 🧠 Original MOhammadreza 🧠 Original
2024-06-12T14:05:58Z
3.4
[]
[ "tests/normalize-data-types.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/fagqAhZl3j" ]
tailwindlabs/tailwindcss
3,850
tailwindlabs__tailwindcss-3850
[ "3834" ]
23b71a9a36b9327683d4548d654434ee4c2482f5
diff --git a/src/plugins/gradientColorStops.js b/src/plugins/gradientColorStops.js --- a/src/plugins/gradientColorStops.js +++ b/src/plugins/gradientColorStops.js @@ -2,7 +2,7 @@ import _ from 'lodash' import flattenColorPalette from '../util/flattenColorPalette' import nameClass from '../util/nameClass' import toCo...
diff --git a/__tests__/plugins/gradientColorStops.test.js b/__tests__/plugins/gradientColorStops.test.js --- a/__tests__/plugins/gradientColorStops.test.js +++ b/__tests__/plugins/gradientColorStops.test.js @@ -17,6 +17,7 @@ test('opacity variables are given to colors defined as closures', () => { return...
Preserve HSL colors instead of converting to RGBA (keeps colors on older browsers) ### What version of Tailwind CSS are you using? v2.0.4 ### What version of Node.js are you using? v14.16.0 ### What browser are you using? N/A ### What operating system are you using? macOS ### Reproduction repository see body ...
I don't really see how this would matter considering the stats of people using old browsers are a very small minority ![image](https://nbb.rocks/i/Fl4dB.png) Safari is actually the biggest problem for browser support, vis a vis current usage. It didn't support floats until late 2018/early 2019 (somewhere in v12.1.x) A...
2021-03-26T10:28:46Z
2.1
[]
[ "__tests__/withAlphaVariable.test.js", "__tests__/plugins/ringWidth.test.js", "__tests__/plugins/gradientColorStops.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
4,102
tailwindlabs__tailwindcss-4102
[ "3136" ]
77ef26015645dc767a1f520cf4f7772696702e5c
diff --git a/src/lib/substituteVariantsAtRules.js b/src/lib/substituteVariantsAtRules.js --- a/src/lib/substituteVariantsAtRules.js +++ b/src/lib/substituteVariantsAtRules.js @@ -124,6 +124,7 @@ const defaultVariantGenerators = (config) => ({ hover: generatePseudoClassVariant('hover'), 'focus-within': generatePse...
diff --git a/tests/variantsAtRule.test.js b/tests/variantsAtRule.test.js --- a/tests/variantsAtRule.test.js +++ b/tests/variantsAtRule.test.js @@ -569,6 +569,27 @@ test('it can generate hover, active and focus variants', () => { }) }) +test('it can generate read-only variants', () => { + const input = ` + @va...
Read only variant There's currently no variant for `<input>` elements with the `readonly` attribute. I added this myself today following the [variant plugin documentation](https://tailwindcss.com/docs/plugins#adding-variants), but wanted to check whether this would be a good inclusion to the framework as a variant user...
Hey! No concrete plans to add this but since we already have `disabled` I suppose there's no reason to close a PR for it, especially since it would be disabled by default. Feel free to open a PR for it if you like πŸ‘πŸ» Closing this though as we only use issues for bug reports. @weaversam8 Are you still willing to submi...
2021-04-18T11:57:39Z
2.1
[]
[ "tests/variantsAtRule.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
4,214
tailwindlabs__tailwindcss-4214
[ "3948" ]
e764df5055b7e4a1f2edb72d38b76b338d0e2f13
diff --git a/src/index.js b/src/index.js --- a/src/index.js +++ b/src/index.js @@ -97,7 +97,7 @@ module.exports = function (config) { return { postcssPlugin: 'tailwindcss', - plugins: [...plugins, processTailwindFeatures(getConfig), formatCSS], + plugins: [...plugins, processTailwindFeatures(getConfig, ...
diff --git a/tests/fixtures/custom-purge-config.js b/tests/fixtures/custom-purge-config.js new file mode 100644 --- /dev/null +++ b/tests/fixtures/custom-purge-config.js @@ -0,0 +1,20 @@ +module.exports = { + purge: ['./*.html'], + theme: { + extend: { + colors: { + 'black!': '#000', + }, + s...
Not all classes are being pulled in from Blade files, some only after re-saving the files. ### What version of @tailwindcss/jit are you using? 0.1.3 ### What version of Node.js are you using? v14.16.0 ### What browser are you using? Chrome ### What operating system are you using? macOS ### Reproduction reposito...
> You don't have package.json or package-lock.json in your repo. `npm install` won't work. Perhaps it was unclear, but those files are also located in the subfolder `resources/myfolder`. In our project we have multiple frontends which means we have multiple package.json etc that are located in other subfolders like ...
2021-04-30T17:33:03Z
2.1
[]
[ "tests/jit/relative-purge-paths.test.js", "tests/purgeUnusedStyles.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
4,260
tailwindlabs__tailwindcss-4260
[ "4202" ]
2d9e2d9318b371e49e904fd67b00d48f707a2ebe
diff --git a/src/jit/lib/expandApplyAtRules.js b/src/jit/lib/expandApplyAtRules.js --- a/src/jit/lib/expandApplyAtRules.js +++ b/src/jit/lib/expandApplyAtRules.js @@ -30,7 +30,6 @@ function buildApplyCache(applyCandidates, context) { return context.applyClassCache } -// TODO: Apply `!important` stuff correctly in...
diff --git a/tests/jit/apply.test.css b/tests/jit/apply.test.css --- a/tests/jit/apply.test.css +++ b/tests/jit/apply.test.css @@ -323,6 +323,11 @@ h2 { line-height: 2rem; } } +.important-modifier { + border-radius: 0.375rem !important; + padding-left: 1rem; + padding-right: 1rem; +} @keyframes spin { t...
[Bug]: Important modifier not working ### What version of Tailwind CSS are you using? 2.1.2 ### What build tool (or framework if it abstracts the build tool) are you using? vue-tailwind 2.2.1, webpack 5.21.2 ### What version of Node.js are you using? v15.11.0 ### What browser are you using? Chrome ### What oper...
Have you enabled JIT mode [as described in the documentation](https://tailwindcss.com/docs/just-in-time-mode#enabling-jit-mode)? JIT mode is not currently supported in Tailwind Play, and you are using `jit: true` there instead of `mode: 'jit'`. If you have enabled JIT mode correctly and it's still not working please...
2021-05-06T17:46:18Z
2.1
[]
[ "tests/jit/apply.test.js" ]
TypeScript
[ "https://user-images.githubusercontent.com/5358638/116396493-c2c6d900-a825-11eb-8988-a407b536fbb0.png" ]
[ "https://play.tailwindcss.com/qVS5lsqxMS" ]
tailwindlabs/tailwindcss
4,272
tailwindlabs__tailwindcss-4272
[ "4094" ]
76c670fc2913eb03a340a015d30d3db53cca9c22
diff --git a/src/jit/lib/expandTailwindAtRules.js b/src/jit/lib/expandTailwindAtRules.js --- a/src/jit/lib/expandTailwindAtRules.js +++ b/src/jit/lib/expandTailwindAtRules.js @@ -25,9 +25,12 @@ function getDefaultExtractor(fileExtension) { } } -function getExtractor(fileName, tailwindConfig) { +function getExtrac...
diff --git a/tests/jit/raw-content.test.css b/tests/jit/raw-content.test.css new file mode 100644 --- /dev/null +++ b/tests/jit/raw-content.test.css @@ -0,0 +1,757 @@ +* { + --tw-shadow: 0 0 #0000; + --tw-ring-inset: var(--tw-empty, /*!*/ /*!*/); + --tw-ring-offset-width: 0px; + --tw-ring-offset-color: #fff; + --t...
[JIT] Add support for "raw" purge content ### What version of Tailwind CSS are you using? v2.1.1 ### What build tool (or framework if it abstracts the build tool) are you using? Maizzle v3.3.1 ### What version of Node.js are you using? v14.15.1 ### What browser are you using? Chrome ### What operating system ar...
Just tried to use an object config right in `tailwind.config.js` for `purge`: ```js module.exports = { mode: 'jit', // purge: [ // 'src/**/*.*', // ], purge: { enabled: true, content: [ 'src/**/*.*', ], }, } ``` ... and the same error is thrown. I suppose object syntax...
2021-05-07T11:36:33Z
2.1
[]
[ "tests/jit/raw-content.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
4,277
tailwindlabs__tailwindcss-4277
[ "4261" ]
2f100efbab89776366ab9e71fdbd6b0357b3af92
diff --git a/src/plugins/borderColor.js b/src/plugins/borderColor.js --- a/src/plugins/borderColor.js +++ b/src/plugins/borderColor.js @@ -2,7 +2,23 @@ import flattenColorPalette from '../util/flattenColorPalette' import withAlphaVariable from '../util/withAlphaVariable' export default function () { - return funct...
diff --git a/tests/fixtures/tailwind-output-flagged.css b/tests/fixtures/tailwind-output-flagged.css --- a/tests/fixtures/tailwind-output-flagged.css +++ b/tests/fixtures/tailwind-output-flagged.css @@ -410,7 +410,7 @@ body { box-sizing: border-box; /* 1 */ border-width: 0; /* 2 */ border-style: solid; /* 2 */...
[Bug]: border-opacity doesn't work with default border color ### What version of Tailwind CSS are you using? 2.1.1 ### What build tool (or framework if it abstracts the build tool) are you using? play.tailwind.com ### What version of Node.js are you using? play.tailwind.com ### What browser are you using? Safari...
> However, adding a border color (e.g., border-red-500) lets the opacity work correctly. I have the exact same issue but with custom colors as well.
2021-05-07T23:45:57Z
2.1
[]
[ "tests/jit/raw-content.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/8qs2AKmp9g" ]
tailwindlabs/tailwindcss
4,335
tailwindlabs__tailwindcss-4335
[ "4008" ]
87a4516871fbe8eb5a188fa9774a99a5d43e38b6
diff --git a/src/jit/index.js b/src/jit/index.js --- a/src/jit/index.js +++ b/src/jit/index.js @@ -30,9 +30,9 @@ export default function (configOrPath = {}) { }) } - rewriteTailwindImports(root) + let tailwindDirectives = rewriteTailwindImports(root) - let context = setupContext(confi...
diff --git a/tests/jit/layer-without-tailwind.test.css b/tests/jit/layer-without-tailwind.test.css new file mode 100644 --- /dev/null +++ b/tests/jit/layer-without-tailwind.test.css @@ -0,0 +1,5 @@ +@layer components { + .foo { + color: black; + } +} diff --git a/tests/jit/layer-without-tailwind.test.html b/tests/...
JIT x CSS Modules x `@layer` directive results in no CSS module class emitted ### What version of Tailwind CSS are you using? v2.1.1 ### What version of Node.js are you using? v12.14.1 ### What browser are you using? Chrome ### What operating system are you using? macOS ### Reproduction reposito...
I am seeing the same symptoms in a similar setup (but using just `css-loader` and `mini-css-extract-plugin`). I think this is probably expected if I understand it right β€” CSS modules are processed in total isolation and it's not possible for a `@layer` rule there to be hoisted out into Tailwind's main `@tailwind compon...
2021-05-12T20:48:45Z
2.1
[ "tests/jit/prefix.test.js" ]
[ "tests/jit/layer-without-tailwind.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
4,795
tailwindlabs__tailwindcss-4795
[ "4791" ]
b3d5b4e00041392f85a860bcd7758edcfa7612f0
diff --git a/src/util/parseAnimationValue.js b/src/util/parseAnimationValue.js --- a/src/util/parseAnimationValue.js +++ b/src/util/parseAnimationValue.js @@ -2,7 +2,15 @@ const DIRECTIONS = new Set(['normal', 'reverse', 'alternate', 'alternate-reverse const PLAY_STATES = new Set(['running', 'paused']) const FILL_MOD...
diff --git a/tests/plugins/animation.test.js b/tests/plugins/animation.test.js --- a/tests/plugins/animation.test.js +++ b/tests/plugins/animation.test.js @@ -13,10 +13,12 @@ test('defining animation and keyframes', () => { none: 'none', spin: 'spin 1s linear infinite', ping: 'ping 1s cubic-b...
Animations get purged if using step-start or step-end timing function ### What version of Tailwind CSS are you using? v2.2.2 ### What build tool (or framework if it abstracts the build tool) are you using? @symfony/webpack-encore": ^1.3.0 ### What version of Node.js are you using? v12.0.0 ### What browser are you...
Seems to be same issue as https://github.com/tailwindlabs/tailwindcss/issues/4737 @hug963 I saw your issue and I think it's kinda related. In case of `step-start` / `step-end` it should be as easy as updating the `timings` constant and add those values: https://github.com/tailwindlabs/tailwindcss/blob/master/src/util/p...
2021-06-24T11:38:52Z
2.2
[]
[ "tests/plugins/animation.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/P8QHN8mDNy?file=config" ]
tailwindlabs/tailwindcss
4,817
tailwindlabs__tailwindcss-4817
[ "4801" ]
fdfecf3b9c50342210c280b20327726b7ff53324
diff --git a/src/jit/lib/expandTailwindAtRules.js b/src/jit/lib/expandTailwindAtRules.js --- a/src/jit/lib/expandTailwindAtRules.js +++ b/src/jit/lib/expandTailwindAtRules.js @@ -6,7 +6,13 @@ import cloneNodes from '../../util/cloneNodes' let env = sharedState.env let contentMatchCache = sharedState.contentMatchCache...
diff --git a/tests/jit/extractor-edge-cases.test.js b/tests/jit/extractor-edge-cases.test.js new file mode 100644 --- /dev/null +++ b/tests/jit/extractor-edge-cases.test.js @@ -0,0 +1,57 @@ +import postcss from 'postcss' +import path from 'path' +import tailwind from '../../src/jit/index.js' + +function run(input, conf...
JIT includes quotes in class names when classes are followed by `'` and `]` characters ### What version of Tailwind CSS are you using? v2.2.4 ### What build tool (or framework if it abstracts the build tool) are you using? Tailwind CLI ### What version of Node.js are you using? v16.2.0 ### What browser are you us...
Hey! This is a tough one β€” what you are seeing there is how we support classes like this: ```html <div class="content-[']']"> ``` https://play.tailwindcss.com/8zudTG6Nal Not sure what the right trade off to make here in ambiguous situations, especially given the constraint that this has to be achievable with...
2021-06-26T13:53:19Z
2.2
[]
[ "tests/jit/extractor-edge-cases.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
5,223
tailwindlabs__tailwindcss-5223
[ "4705" ]
ca6900dc35cedc6410226b4b2e8901852c6f44be
diff --git a/src/plugins/animation.js b/src/plugins/animation.js --- a/src/plugins/animation.js +++ b/src/plugins/animation.js @@ -11,7 +11,6 @@ export default function () { { [`@keyframes ${prefixName(key)}`]: value, }, - { respectVariants: false }, ], ...
diff --git a/tests/jit/animations.test.css b/tests/jit/animations.test.css new file mode 100644 --- /dev/null +++ b/tests/jit/animations.test.css @@ -0,0 +1,32 @@ +@keyframes spin { + to { + transform: rotate(360deg); + } +} +.animate-spin { + animation: spin 1s linear infinite; +} +@keyframes ping { + 75%, + 1...
group-*:animate-* generates invalid keyframe definition ### What version of Tailwind CSS are you using? v2.2.0 ### What build tool (or framework if it abstracts the build tool) are you using? postcss@7.0.36, webpack@5.39.1 ### What version of Node.js are you using? v15.10.0 ### What browser are you using? Chrome...
Found this in my search, I hope it helps: https://github.com/tailwindlabs/play.tailwindcss.com/issues/54 If you downgrade to 2.1.4 it should work again. Yeah it worked before, so definitely a regression. I stepped trough the code a little and it looks like the `{ respectVariants: false }` config gets lost somewher...
2021-08-16T14:53:27Z
2.2
[]
[ "tests/jit/animations.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/DrsR2rdrZO" ]
tailwindlabs/tailwindcss
5,252
tailwindlabs__tailwindcss-5252
[ "5015" ]
d13b0e1085f2e526b8c5b49371b9e1b11d29b472
diff --git a/src/plugins/animation.js b/src/plugins/animation.js --- a/src/plugins/animation.js +++ b/src/plugins/animation.js @@ -19,18 +19,23 @@ export default function () { matchUtilities( { animate: (value, { includeRules }) => { - let { name: animationName } = parseAnimationValue(valu...
diff --git a/tests/jit/animations.test.css b/tests/jit/animations.test.css deleted file mode 100644 --- a/tests/jit/animations.test.css +++ /dev/null @@ -1,32 +0,0 @@ -@keyframes spin { - to { - transform: rotate(360deg); - } -} -.animate-spin { - animation: spin 1s linear infinite; -} -@keyframes ping { - 75%, ...
Custom animations with more than 1 animation separeted by commas dont work ### What version of Tailwind CSS are you using? v2.2.4 ### What build tool (or framework if it abstracts the build tool) are you using? Next.js 11.0.1 ### What version of Node.js are you using? v16.4.2 ### What browser are you ...
Relevant codepen with expected result https://codepen.io/timber1900/pen/rNmwEvq?editors=1100 @Timber1900 Sounds like same problem as mine #4711. Combined animations are not being processed ( intentionally ? ) due to which keyframes are ignored. I tried #4802 but closed due to inaction. Defining animation along with ...
2021-08-18T17:19:07Z
2.2
[]
[ "tests/parseAnimationValue.test.js", "tests/jit/animations.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/si3enE3TvA" ]
tailwindlabs/tailwindcss
5,470
tailwindlabs__tailwindcss-5470
[ "5458" ]
30badadd211594ccc83c686e3f4c1f06a7e107c9
diff --git a/src/corePlugins.js b/src/corePlugins.js --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -1014,7 +1014,11 @@ export let divideColor = ({ matchUtilities, theme, corePlugins }) => { { divide: (value) => { if (!corePlugins('divideOpacity')) { - return { ['& > :not([hidden]) ~...
diff --git a/tests/opacity.test.css b/tests/opacity.test.css deleted file mode 100644 --- a/tests/opacity.test.css +++ /dev/null @@ -1,15 +0,0 @@ -.divide-black > :not([hidden]) ~ :not([hidden]) { - border-color: #000; -} -.border-black { - border-color: #000; -} -.bg-black { - background-color: #000; -} -.text-blac...
Disabling an opacity plugin breaks support for custom property colors ### What version of Tailwind CSS are you using? 2.2.7 ### What build tool (or framework if it abstracts the build tool) are you using? Tailwind Play ### What version of Node.js are you using? n/a ### What browser are you using? n/a ### What o...
A workaround is to provide an empty theme instead of disabling the opacity plugin, for example `backgroundOpacity: {}`.
2021-09-10T13:28:31Z
2.2
[]
[ "tests/opacity.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/YVjDQE13bj" ]
tailwindlabs/tailwindcss
5,830
tailwindlabs__tailwindcss-5830
[ "5806" ]
0c2f1a64727d8f2c5fbc8425001aaf47940cf5a2
diff --git a/src/lib/collapseDuplicateDeclarations.js b/src/lib/collapseDuplicateDeclarations.js new file mode 100644 --- /dev/null +++ b/src/lib/collapseDuplicateDeclarations.js @@ -0,0 +1,28 @@ +export default function collapseDuplicateDeclarations() { + return (root) => { + root.walkRules((node) => { + let ...
diff --git a/tests/apply.test.css b/tests/apply.test.css --- a/tests/apply.test.css +++ b/tests/apply.test.css @@ -10,8 +10,6 @@ .class-order { padding: 2rem; padding-left: 0.75rem; - padding-right: 0.75rem; - padding-top: 1.75rem; padding-bottom: 1.75rem; padding-top: 1rem; padding-right: 0.25rem; @@...
[JIT] apply: duplicate transform properties **What version of Tailwind CSS are you using?** 2.2.15 (also tested with 3.0.0-alpha.1 and 2.2.17) **Reproduction URL** https://play.tailwindcss.com/KkuBVniu30?file=css **Describe your issue** Using multiple transform-based properties (like translate-x and tran...
2021-10-19T14:52:47Z
3.0
[]
[ "tests/apply.test.js", "tests/custom-plugins.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/KkuBVniu30?file=css" ]
tailwindlabs/tailwindcss
5,854
tailwindlabs__tailwindcss-5854
[ "5851" ]
0ab39c312ab789d9a7ac47262b2829c08497ee1f
diff --git a/src/lib/generateRules.js b/src/lib/generateRules.js --- a/src/lib/generateRules.js +++ b/src/lib/generateRules.js @@ -448,28 +448,42 @@ function generateRules(candidates, context) { allRules.push(matches) } - return allRules.flat(1).map(([{ sort, layer, options }, rule]) => { - if (options.re...
diff --git a/tests/layer-at-rules.test.js b/tests/layer-at-rules.test.js --- a/tests/layer-at-rules.test.js +++ b/tests/layer-at-rules.test.js @@ -50,6 +50,125 @@ test('custom user-land utilities', () => { }) }) +test('comments can be used inside layers without crashing', () => { + let config = { + content: [...
Jit crash with comment in `@layer utilities` **What version of Tailwind CSS are you using?** v2.2.17 **What build tool (or framework if it abstracts the build tool) are you using?** Vite 2.6.7 **What version of Node.js are you using?** For example: v16.11.0 **What browser are you using?** N/A **...
Hey! Thank you for your bug report! Much appreciated! πŸ™ I can't reproduce it with this setup, but can you share your full tailwind.config.js? I can reproduce it when I have `important: true`, but I want to verify that you have this as well. Oh, sorry I forgot to put the config I used. Indeed, we have `important: ...
2021-10-22T13:13:27Z
3.0
[]
[ "tests/layer-at-rules.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
6,369
tailwindlabs__tailwindcss-6369
[ "6360" ]
08241c3f7547e5e5c86e2de312add172fb9d5da8
diff --git a/src/lib/resolveDefaultsAtRules.js b/src/lib/resolveDefaultsAtRules.js --- a/src/lib/resolveDefaultsAtRules.js +++ b/src/lib/resolveDefaultsAtRules.js @@ -71,6 +71,8 @@ function extractElementSelector(selector) { export default function resolveDefaultsAtRules({ tailwindConfig }) { return (root) => { ...
diff --git a/tests/apply.test.js b/tests/apply.test.js --- a/tests/apply.test.js +++ b/tests/apply.test.js @@ -577,3 +577,42 @@ it('should throw when trying to apply an indirect circular dependency with a mod expect(err.reason).toBe('Circular dependency detected when using: `@apply a`') }) }) + +it('rules with...
Vendor prefix can break the generated css <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?** v3.0.0 **What build tool (or fram...
Ah great catch, this is an important one and will prioritize, thank you πŸ‘πŸ»
2021-12-10T15:30:47Z
3.0
[]
[ "tests/apply.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/YkD75GMXHs?file=css" ]
tailwindlabs/tailwindcss
6,469
tailwindlabs__tailwindcss-6469
[ "6395" ]
4b2482ff3550ec7ca74561f8ae84d4d826cca762
diff --git a/src/lib/generateRules.js b/src/lib/generateRules.js --- a/src/lib/generateRules.js +++ b/src/lib/generateRules.js @@ -248,6 +248,21 @@ function parseRules(rule, cache, options = {}) { return [cache.get(rule), options] } +const IS_VALID_PROPERTY_NAME = /^[a-z_-]/ + +function isValidPropName(name) { + ...
diff --git a/tests/arbitrary-properties.test.js b/tests/arbitrary-properties.test.js --- a/tests/arbitrary-properties.test.js +++ b/tests/arbitrary-properties.test.js @@ -231,3 +231,45 @@ test('invalid class', () => { expect(result.css).toMatchFormattedCss(css``) }) }) + +test('invalid arbitrary property', () ...
Abnormal css ouput when some string in the code is wrapped in square brackets **What version of Tailwind CSS are you using?** v3.0.1 **What build tool (or framework if it abstracts the build tool) are you using?** Next.js 12.0.4, postcss 8.4.4 **What version of Node.js are you using?** v14.18.1 **What...
This is probably because of [arbitrary properties](https://tailwindcss.com/docs/adding-custom-styles#arbitrary-properties). you can just add an unnecessary escape: ```ts const ProblemComponent = () => { return ( <button nCanPlay={(event: any) => { console.debug(`player ready: [autoplay\:${...
2021-12-13T17:36:20Z
3.0
[]
[ "tests/arbitrary-properties.test.js" ]
TypeScript
[ "https://user-images.githubusercontent.com/1519448/145675038-5633e78e-79ad-493a-b3ab-8d0245fa0831.jpg", "https://user-images.githubusercontent.com/1519448/145675095-66ae8a3c-3e50-49f7-9948-2f3fa8802b86.jpg", "https://user-images.githubusercontent.com/1519448/145675212-7f46ff3e-6877-474f-9f70-3848f2140dc5.jpg", ...
[]
tailwindlabs/tailwindcss
6,519
tailwindlabs__tailwindcss-6519
[ "6436" ]
fb545bc94de9e8baf33990b71d87df0c269dce22
diff --git a/src/lib/evaluateTailwindFunctions.js b/src/lib/evaluateTailwindFunctions.js --- a/src/lib/evaluateTailwindFunctions.js +++ b/src/lib/evaluateTailwindFunctions.js @@ -42,7 +42,7 @@ function validatePath(config, path, defaultValue) { ? pathToString(path) : path.replace(/^['"]+/g, '').replace(/['"]+...
diff --git a/tests/evaluateTailwindFunctions.test.js b/tests/evaluateTailwindFunctions.test.js --- a/tests/evaluateTailwindFunctions.test.js +++ b/tests/evaluateTailwindFunctions.test.js @@ -31,6 +31,111 @@ test('it looks up values in the theme using dot notation', () => { }) }) +test('it looks up values in the t...
v2 to v3 theme() keys bug? **What version of Tailwind CSS are you using?** v3.0.1 **What build tool (or framework if it abstracts the build tool) are you using?** vue cli v5.x webpack v5.x **What version of Node.js are you using?** v16.5.0 **What browser are you using?** N/A **What operating sys...
I think it's wrong to use array in object definition, try with this. ``` module.exports = { theme: { spacing: { "4.5": "1.125rem" }, } } ``` By the way why are you using space in font size? and if you want to not override default spacing values you need to extend the theme this way ``...
2021-12-14T22:26:30Z
3.0
[]
[ "tests/to-path.test.js", "tests/evaluateTailwindFunctions.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
6,546
tailwindlabs__tailwindcss-6546
[ "6503" ]
4a5ba3779e9bb4ce726488e9b624bd73521e79e9
diff --git a/src/util/resolveConfig.js b/src/util/resolveConfig.js --- a/src/util/resolveConfig.js +++ b/src/util/resolveConfig.js @@ -6,6 +6,8 @@ import colors from '../public/colors' import { defaults } from './defaults' import { toPath } from './toPath' import { normalizeConfig } from './normalizeConfig' +import ...
diff --git a/tests/basic-usage.test.js b/tests/basic-usage.test.js --- a/tests/basic-usage.test.js +++ b/tests/basic-usage.test.js @@ -57,3 +57,55 @@ test('all plugins are executed that match a candidate', () => { `) }) }) + +test('per-plugin colors with the same key can differ when using a custom colors objec...
Extending multiple color plugins using the same color name causes incorrect colors. <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?...
I would like to work on this, can you assign to me?
2021-12-15T19:02:38Z
3.0
[]
[ "tests/basic-usage.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/v7qgUeljBK?file=config", "https://play.tailwindcss.com/qaS9VP8AHE?file=config" ]
tailwindlabs/tailwindcss
6,726
tailwindlabs__tailwindcss-6726
[ "6709" ]
da7396cf7759dc68f4c2a4c1b03d46e5718cf915
diff --git a/src/util/color.js b/src/util/color.js --- a/src/util/color.js +++ b/src/util/color.js @@ -5,8 +5,11 @@ let SHORT_HEX = /^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i let VALUE = `(?:\\d+|\\d*\\.\\d+)%?` let SEP = `(?:\\s*,\\s*|\\s+)` let ALPHA_SEP = `\\s*[,/]\\s*` -let RGB_HSL = new RegExp( - `^(rgb|hsl)a...
diff --git a/tests/arbitrary-values.test.css b/tests/arbitrary-values.test.css --- a/tests/arbitrary-values.test.css +++ b/tests/arbitrary-values.test.css @@ -603,6 +603,13 @@ .bg-\[hsla\(0\2c 100\%\2c 50\%\2c 0\.3\)\] { background-color: hsla(0, 100%, 50%, 0.3); } +.bg-\[hsl\(0rad\2c 100\%\2c 50\%\)\] { + --tw-b...
HSL no longer works in JIT **What version of Tailwind CSS are you using?** v3.0.7 **What build tool (or framework if it abstracts the build tool) are you using?** Next 12.0.7, VSCode 1.63.2, latest version of Tailwind IntelliSense plugin **What version of Node.js are you using?** v16.13.0 **What brows...
Thanks! Looks like we need to account for the unit on the first value in our parser, because using `rad`, `grad`, or `turn` also doesn't work. One temporary workaround is to add a type hint: ``` bg-[color:hsl(202deg,96%,16%)] ``` ...or remove the `deg`: ``` bg-[hsl(202,96%,16%)] ``` Will leave this o...
2021-12-24T18:14:01Z
3.0
[]
[ "tests/color.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
6,875
tailwindlabs__tailwindcss-6875
[ "6194" ]
41e32bd9a726e5df686681d08f0429ae55897e67
diff --git a/src/lib/expandTailwindAtRules.js b/src/lib/expandTailwindAtRules.js --- a/src/lib/expandTailwindAtRules.js +++ b/src/lib/expandTailwindAtRules.js @@ -140,17 +140,28 @@ export default function expandTailwindAtRules(context) { variants: null, } - // Make sure this file contains Tailwind dire...
diff --git a/tests/apply.test.js b/tests/apply.test.js --- a/tests/apply.test.js +++ b/tests/apply.test.js @@ -1,5 +1,6 @@ import fs from 'fs' import path from 'path' +import { DEFAULTS_LAYER } from '../src/lib/expandTailwindAtRules.js' import { run, html, css } from './util/run' @@ -810,3 +811,39 @@ it('should ...
Focus visible doesn't work with @apply in CSS module **What version of Tailwind CSS are you using?** 3.0.0-alpha.2 **What build tool (or framework if it abstracts the build tool) are you using?** Next 12.0.4 **What version of Node.js are you using?** v16.13.0 **What browser are you using?** Chrome ...
Hey! Can you please provide a proper reproduction (a repo we can clone that replicates your particular setup)? Yes, will do tomorrow morning Same issue with `focus` and tailwindcss 2.2.19. The issue comes with @apply in CSS module and without using the same utilities in the global css file or in className. ![image]...
2022-01-04T15:49:31Z
3.0
[]
[ "tests/apply.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
6,938
tailwindlabs__tailwindcss-6938
[ "6321" ]
9c72add3b717d7f540f63579d0a934bfd40f0491
diff --git a/src/lib/expandApplyAtRules.js b/src/lib/expandApplyAtRules.js --- a/src/lib/expandApplyAtRules.js +++ b/src/lib/expandApplyAtRules.js @@ -72,47 +72,6 @@ function extractApplyCandidates(params) { return [candidates, false] } -function partitionApplyParents(root) { - let applyParents = new Set() - - ...
diff --git a/tests/apply.test.css b/tests/apply.test.css --- a/tests/apply.test.css +++ b/tests/apply.test.css @@ -122,7 +122,6 @@ text-align: left; } } -/* TODO: This works but the generated CSS is unnecessarily verbose. */ .complex-utilities { --tw-ordinal: ordinal; --tw-numeric-spacing: tabular-nums;...
Utility classes can't be built with @apply and custom props <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?** v3.0.0 **What b...
same for me =( Hey! So we're going to dig into this a little deeper, but as a workaround you can wrap these classes in an `@layer utilities` directive to get this working: ```css @layer utilities { .a { @apply b; } .b { @apply uppercase; color: red; } } ``` Here's an updated Play i...
2022-01-06T20:11:03Z
3.0
[]
[ "tests/apply.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/7FFOWiZ88S?file=css", "https://play.tailwindcss.com/CwBZvIVuPx?file=css", "https://play.tailwindcss.com/qm3e5FDSEr" ]
tailwindlabs/tailwindcss
7,102
tailwindlabs__tailwindcss-7102
[ "380" ]
deee3b1995a7726ecb95ae144dd6647dd6b4ce72
diff --git a/src/corePlugins.js b/src/corePlugins.js --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -529,6 +529,41 @@ export let corePlugins = { }) }, + borderSpacing: ({ addDefaults, matchUtilities, theme }) => { + addDefaults('border-spacing', { + '--tw-border-spacing-x': 0, + '--tw-bord...
diff --git a/tests/__snapshots__/source-maps.test.js.snap b/tests/__snapshots__/source-maps.test.js.snap new file mode 100644 --- /dev/null +++ b/tests/__snapshots__/source-maps.test.js.snap @@ -0,0 +1,317 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`apply generates source maps 1`] = ` +Array [ + "2:4 ->...
Border Spacing Hey, I just wanted to ask if something related to "border-spacing" is planed? The default table layout does include `border-spacing: 2px` which is kind of annoying since I wanted to add a bottom border after the table head. With border-spacing 2: ![bildschirmfoto 2018-02-09 um 23 37 21](https:/...
+1 Default Border Spacing is a problem. You cannot add a continuous background color to tables because of this. See http://jsbin.com/soxeqat/edit?html,output We're planning to add some table related utilities in the near future but in the mean time you can easily add your own utilities: https://tailwindcss.c...
2022-01-17T18:43:53Z
3.0
[]
[ "tests/source-maps.test.js", "tests/plugins/divide.test.js", "tests/basic-usage.test.js" ]
TypeScript
[ "https://user-images.githubusercontent.com/15618191/36053507-34513eb6-0df2-11e8-9f3a-3c17e96d8c89.png", "https://user-images.githubusercontent.com/15618191/36053530-46238176-0df2-11e8-8101-390743bca782.png" ]
[]
tailwindlabs/tailwindcss
7,163
tailwindlabs__tailwindcss-7163
[ "7149" ]
10103d8bafdb401da417fd13b19dd426f612340f
diff --git a/src/corePlugins.js b/src/corePlugins.js --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -3,6 +3,7 @@ import * as path from 'path' import postcss from 'postcss' import createUtilityPlugin from './util/createUtilityPlugin' import buildMediaQuery from './util/buildMediaQuery' +import escapeClassName f...
diff --git a/tests/animations.test.js b/tests/animations.test.js --- a/tests/animations.test.js +++ b/tests/animations.test.js @@ -181,3 +181,96 @@ test('multiple custom', () => { `) }) }) + +test('with dots in the name', () => { + let config = { + content: [ + { + raw: html` + <div cl...
Wrong keyframe keys when generationg CSS classes with JS <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?** For example: v3.0.15 ...
Hey, @Mastercuber. What you're seeing there isn't the "wrong key" per se. Tailwind is mistakenly trying to prefix the "." in your animation value and keyframe name when it should instead be escaping them and then prefixing. I will send the Tailwind team a PR to address this.
2022-01-22T01:00:18Z
3.0
[]
[ "tests/animations.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
7,289
tailwindlabs__tailwindcss-7289
[ "7178" ]
dab8b046ea862a54ba3f646bfcbd059ef1335e74
diff --git a/src/util/parseBoxShadowValue.js b/src/util/parseBoxShadowValue.js --- a/src/util/parseBoxShadowValue.js +++ b/src/util/parseBoxShadowValue.js @@ -1,7 +1,7 @@ let KEYWORDS = new Set(['inset', 'inherit', 'initial', 'revert', 'unset']) let COMMA = /\,(?![^(]*\))/g // Comma separator that is not located betw...
diff --git a/tests/basic-usage.test.js b/tests/basic-usage.test.js --- a/tests/basic-usage.test.js +++ b/tests/basic-usage.test.js @@ -137,3 +137,38 @@ it('fasly config values still work', () => { `) }) }) + +it('shadows support values without a leading zero', () => { + let config = { + content: [{ raw: ht...
Units without leading 0s causes shadow color to not work. **What version of Tailwind CSS are you using?** 3.0.14 **What build tool (or framework if it abstracts the build tool) are you using?** Play **What version of Node.js are you using?** N/A **What browser are you using?** Chrome **What oper...
2022-02-01T16:47:23Z
3.0
[]
[ "tests/basic-usage.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/sgiL9df2gw?file=config" ]
tailwindlabs/tailwindcss
7,291
tailwindlabs__tailwindcss-7291
[ "7207" ]
cd8f109981ed64ec78fb70b3091153f45931ff27
diff --git a/src/index.js b/src/index.js --- a/src/index.js +++ b/src/index.js @@ -13,7 +13,21 @@ module.exports = function tailwindcss(configOrPath) { return root }, function (root, result) { - processTailwindFeatures(setupTrackingContext(configOrPath))(root, result) + let cont...
diff --git a/tests/variants.test.js b/tests/variants.test.js --- a/tests/variants.test.js +++ b/tests/variants.test.js @@ -1,5 +1,6 @@ import fs from 'fs' import path from 'path' +import postcss from 'postcss' import { run, css, html, defaults } from './util/run' @@ -568,3 +569,37 @@ test('The visited variant re...
Variant nodes are appended to the document rather than a root **What version of Tailwind CSS are you using?** 3.0.16 **What build tool (or framework if it abstracts the build tool) are you using?** postcss-cli 9.1.0 **What version of Node.js are you using?** 17.x **Reproduction URL** See the reprod...
``` /** * Use this directive to control where Tailwind injects the hover, focus, * responsive, dark mode, and other variants of each class. * * If omitted, Tailwind will append these classes to the very end of * your stylesheet by default. */ @tailwind variants; ``` @ma-g-ma maybe this is it! and i've...
2022-02-01T20:06:03Z
3.0
[]
[ "tests/variants.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
7,295
tailwindlabs__tailwindcss-7295
[ "6861" ]
ab9fd951dd7617442bb38f9fd52541cf1ddeceec
diff --git a/src/lib/generateRules.js b/src/lib/generateRules.js --- a/src/lib/generateRules.js +++ b/src/lib/generateRules.js @@ -63,9 +63,23 @@ function applyPrefix(matches, context) { let [meta] = match if (meta.options.respectPrefix) { let container = postcss.root({ nodes: [match[1].clone()] }) + ...
diff --git a/tests/getClassList.test.js b/tests/getClassList.test.js --- a/tests/getClassList.test.js +++ b/tests/getClassList.test.js @@ -5,22 +5,57 @@ it('should generate every possible class, without variants', () => { let config = {} let context = createContext(resolveConfig(config)) - expect(context.getCl...
Safelisting negative values with a prefix not working <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?** v3.0.9 **What build t...
+1 experiencing a similar issue on the newest update ``` "@tailwindcss/aspect-ratio": "^0.4.0", "@tailwindcss/forms": "^0.4.0", "@tailwindcss/line-clamp": "^0.3.0", "@tailwindcss/typography": "^0.5.0", "@types/tailwindcss": "^3.0.1", ```
2022-02-01T22:12:38Z
3.0
[ "tests/getClassList.test.js" ]
[ "tests/prefix.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/lNapHkRIzf?file=config" ]
tailwindlabs/tailwindcss
7,458
tailwindlabs__tailwindcss-7458
[ "7441" ]
0c5af6fed417d7bde2eae133687052eecf19f6f8
diff --git a/src/corePlugins.js b/src/corePlugins.js --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -70,7 +70,28 @@ export let variantPlugins = { 'only-of-type', // State - 'visited', + [ + 'visited', + ({ container }) => { + let toRemove = ['--tw-text-opacity', '-...
diff --git a/tests/variants.test.js b/tests/variants.test.js --- a/tests/variants.test.js +++ b/tests/variants.test.js @@ -539,3 +539,32 @@ it('variants for utilities should not be produced in a file without a utilities `) }) }) + +test('The visited variant removes opacity support', () => { + let config = { +...
Visited classes are not generated Visited classes are not generated [Reproduction](https://play.tailwindcss.com/Mi5NOidSAz?file=css)
2022-02-14T17:24:18Z
3.0
[]
[ "tests/variants.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/Mi5NOidSAz?file=css" ]
tailwindlabs/tailwindcss
7,462
tailwindlabs__tailwindcss-7462
[ "7309" ]
f116f9f6648af81bf22e0c28d01a8da015a53180
diff --git a/src/lib/defaultExtractor.js b/src/lib/defaultExtractor.js --- a/src/lib/defaultExtractor.js +++ b/src/lib/defaultExtractor.js @@ -8,6 +8,8 @@ const PATTERNS = [ /([^<>"'`\s]*\[\w*\("[^"'`\s]*"\)\])/.source, // bg-[url("...")] /([^<>"'`\s]*\[\w*\('[^"`\s]*'\)\])/.source, // bg-[url('...'),url('...')] ...
diff --git a/tests/arbitrary-values.test.js b/tests/arbitrary-values.test.js --- a/tests/arbitrary-values.test.js +++ b/tests/arbitrary-values.test.js @@ -341,3 +341,32 @@ it('should be possible to read theme values in arbitrary values (with quotes)', `) }) }) + +it('should be possible to read theme values in ...
Cannot use `theme()` within `calc()` in arbitrary value **What version of Tailwind CSS are you using?** v3.0.18 **What build tool (or framework if it abstracts the build tool) are you using?** Next.js 12.0.8, Webpack ^5, PostCSS ^8.4.5 **What version of Node.js are you using?** v16.13.1 **What browser...
Hey! You can make this work by getting rid of the quotes: https://play.tailwindcss.com/mn0S0290Tm Ideally we can make it work with quotes too though, will leave this open so we at least look into it a bit more. Ah! It was my understanding that quotes were necessary in the postcss (and therefore in the arbitrary v...
2022-02-14T20:07:03Z
3.0
[]
[ "tests/default-extractor.test.js", "tests/arbitrary-values.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/zsAHSyoNVo" ]
tailwindlabs/tailwindcss
7,478
tailwindlabs__tailwindcss-7478
[ "7204" ]
db475be6ddf087ff96cc326e891ac125d4f9e4e8
diff --git a/src/lib/expandTailwindAtRules.js b/src/lib/expandTailwindAtRules.js --- a/src/lib/expandTailwindAtRules.js +++ b/src/lib/expandTailwindAtRules.js @@ -158,7 +158,7 @@ export default function expandTailwindAtRules(context) { // --- // Find potential rules in changed files - let candidates = ne...
diff --git a/tests/basic-usage.test.js b/tests/basic-usage.test.js --- a/tests/basic-usage.test.js +++ b/tests/basic-usage.test.js @@ -1,7 +1,7 @@ import fs from 'fs' import path from 'path' -import { html, run, css } from './util/run' +import { html, run, css, defaults } from './util/run' test('basic usage', ()...
Bug: some text content can trigger multiple Tailwind builds in the same output css <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?*...
2022-02-15T16:14:45Z
3.0
[]
[ "tests/basic-usage.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
7,479
tailwindlabs__tailwindcss-7479
[ "7347" ]
b94d565eb6f61635babd59873cda40e845217ffb
diff --git a/src/util/parseBoxShadowValue.js b/src/util/parseBoxShadowValue.js --- a/src/util/parseBoxShadowValue.js +++ b/src/util/parseBoxShadowValue.js @@ -1,10 +1,58 @@ let KEYWORDS = new Set(['inset', 'inherit', 'initial', 'revert', 'unset']) -let COMMA = /\,(?![^(]*\))/g // Comma separator that is not located be...
diff --git a/tests/basic-usage.test.js b/tests/basic-usage.test.js --- a/tests/basic-usage.test.js +++ b/tests/basic-usage.test.js @@ -346,3 +346,31 @@ it('does not produce duplicate output when seeing variants preceding a wildcard `) }) }) + +it('it can parse box shadows with variables', () => { + let config...
Bug: box shadow with color method can be compiled with missing parentheses **What version of Tailwind CSS are you using?** 3.0.16 **What build tool (or framework if it abstracts the build tool) are you using?** just Tailwind **What version of Node.js are you using?** For example: v16.13.0 **What brows...
Yeah, this is something which has been bugging me for ages. Tailwind internally converts the formats of all colors to `color: rgba(...)` values which keeps us from being able to specify colors in other systems or use color profiles in CSS Color Module Level 4 colors. I have a discussion at #2218 which illustrates the i...
2022-02-15T18:02:47Z
3.0
[]
[ "tests/basic-usage.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
7,563
tailwindlabs__tailwindcss-7563
[ "7234" ]
9effea5d283be35e67135034a7e69a34a68141d3
diff --git a/src/postcss-plugins/nesting/plugin.js b/src/postcss-plugins/nesting/plugin.js --- a/src/postcss-plugins/nesting/plugin.js +++ b/src/postcss-plugins/nesting/plugin.js @@ -39,6 +39,42 @@ export function nesting(opts = postcssNested) { decl.remove() }) + /** + * Use a private PostCSS API ...
diff --git a/tests/postcss-plugins/nesting/index.test.js b/tests/postcss-plugins/nesting/index.test.js --- a/tests/postcss-plugins/nesting/index.test.js +++ b/tests/postcss-plugins/nesting/index.test.js @@ -1,6 +1,7 @@ import postcss from 'postcss' import postcssNested from 'postcss-nested' import plugin from '../.....
tailwindcss/nesting used with postcss-nesting breaks some postcss plugins <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?** v3.0...
Could you provide a reproduction? It would help to see the versions of the plugins you have installed along with the whole of the setup. Here is a repro, hope it helps (text should turn red). All plugins are latest versions with tailwind (doesn't work) - https://stackblitz.com/edit/vitejs-vite-fv2tnq?file=style.pcs...
2022-02-21T14:58:08Z
3.0
[]
[ "tests/postcss-plugins/nesting/index.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
7,565
tailwindlabs__tailwindcss-7565
[ "4896" ]
af64d7190c1e3b4ed765c7464f99b6aec5d5bac2
diff --git a/src/lib/collapseAdjacentRules.js b/src/lib/collapseAdjacentRules.js --- a/src/lib/collapseAdjacentRules.js +++ b/src/lib/collapseAdjacentRules.js @@ -5,7 +5,7 @@ let comparisonMap = { let types = new Set(Object.keys(comparisonMap)) export default function collapseAdjacentRules() { - return (root) => {...
diff --git a/tests/apply.test.js b/tests/apply.test.js --- a/tests/apply.test.js +++ b/tests/apply.test.js @@ -1289,9 +1289,6 @@ it('apply partitioning works with media queries', async () => { body { --tw-text-opacity: 1; color: rgb(220 38 38 / var(--tw-text-opacity)); - } - html, - ...
Duplicated CSS rules in @media output ### What version of Tailwind CSS are you using? 2.2.4 ### What build tool (or framework if it abstracts the build tool) are you using? Gulp and tailwindcss-cli ### What version of Node.js are you using? v14.17.2 ### What browser are you using? N/A ### What operating system ...
Updating this issue with some additional observations from my local development. When running JIT watch mode (via `npx tailwindcss`), I get many duplicated CSS rules. Still trying to drilldown to what specific actions cause this, but it seems to be related to tailwind watching my content files (Blade views in this c...
2022-02-21T16:58:26Z
3.0
[]
[ "tests/collapse-adjacent-rules.test.js", "tests/apply.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/6re84tZQjw?file=css" ]
tailwindlabs/tailwindcss
7,587
tailwindlabs__tailwindcss-7587
[ "6748" ]
3b8ca9d4ebcfabd39dcbcceeaa73b5b8bf57f3c2
diff --git a/src/corePlugins.js b/src/corePlugins.js --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -1925,7 +1925,7 @@ export let corePlugins = { ringWidth: ({ matchUtilities, addDefaults, addUtilities, theme }) => { let ringOpacityDefault = theme('ringOpacity.DEFAULT', '0.5') let ringColorDefault = ...
diff --git a/tests/basic-usage.test.js b/tests/basic-usage.test.js --- a/tests/basic-usage.test.js +++ b/tests/basic-usage.test.js @@ -110,6 +110,103 @@ test('per-plugin colors with the same key can differ when using a custom colors }) }) +test('default ring color can be a function', () => { + function color(var...
Default colour not applied to ring when using function to generate it **What version of Tailwind CSS are you using?** v3.0.5 **What build tool (or framework if it abstracts the build tool) are you using?** postcss-cli 8.4..5 **What version of Node.js are you using?** v16.13.1 **What browser are you using?**...
@villekivela I worked in this, didn't got the solution, but will like to add something I figured out. It does work with functions with hard coded colour values, the issue lies in doing the same variably. A simple hard coded colour returning function `const col = () => {return "#FF0000";}` and calling part `ringCo...
2022-02-22T20:23:39Z
3.0
[]
[ "tests/basic-usage.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
7,588
tailwindlabs__tailwindcss-7588
[ "5043", "7369" ]
d72b277ba6696fc28c3bf92d84de0f451ea1e360
diff --git a/src/lib/expandApplyAtRules.js b/src/lib/expandApplyAtRules.js --- a/src/lib/expandApplyAtRules.js +++ b/src/lib/expandApplyAtRules.js @@ -140,7 +140,7 @@ function processApply(root, context) { for (let apply of applies) { let candidates = perParentApplies.get(apply.parent) || [] - perPar...
diff --git a/tests/source-maps.test.js b/tests/source-maps.test.js new file mode 100644 --- /dev/null +++ b/tests/source-maps.test.js @@ -0,0 +1,409 @@ +import { runWithSourceMaps as run, html, css } from './util/run' +import { parseSourceMaps } from './util/source-maps' + +it('apply generates source maps', async () =>...
Enabling JIT breaks sourcemaps in webpack + PostCSS project ### What version of Tailwind CSS are you using? 2.2.6 ### What build tool (or framework if it abstracts the build tool) are you using? webpack 5.46.0, postcss 8.3.6 ### What version of Node.js are you using? 14.17.0 ### What browser are you using? Chrom...
**here is a workaround until JIT and sourcemaps work ( it is breaking as of v2.2.7) ** - need two config files (tailwind.config.js) one file with JIT enabled the other disabled. - tailwind.css < @tailwind components; @tailwind utilities; - styles.scss < @tailwind base; import xyz // and Load SCSS via globing /...
2022-02-22T21:18:13Z
3.0
[]
[ "tests/source-maps.test.js" ]
TypeScript
[ "https://user-images.githubusercontent.com/3055750/126648794-ffeed31f-df8c-4cf5-a6b7-20c2ac834799.png", "https://user-images.githubusercontent.com/3055750/126649229-f6154cf6-42b1-4b5f-9d6b-35366f31de8f.png" ]
[]
tailwindlabs/tailwindcss
7,664
tailwindlabs__tailwindcss-7664
[ "7226" ]
bd167635d5ea3866ebcae2fd390393befd730558
diff --git a/src/lib/generateRules.js b/src/lib/generateRules.js --- a/src/lib/generateRules.js +++ b/src/lib/generateRules.js @@ -88,7 +88,7 @@ function applyPrefix(matches, context) { return matches } -function applyImportant(matches) { +function applyImportant(matches, classCandidate) { if (matches.length =...
diff --git a/tests/important-modifier.test.js b/tests/important-modifier.test.js --- a/tests/important-modifier.test.js +++ b/tests/important-modifier.test.js @@ -17,6 +17,22 @@ test('important modifier', () => { }, ], corePlugins: { preflight: false }, + plugins: [ + function ({ theme, matchUt...
! important not working as expected with the matchUtilities **What version of Tailwind CSS are you using?** Tailwind v3.0.14 **What build tool (or framework if it abstracts the build tool) are you using?** postcss-cli 8.3.1 **What browser are you using?** Chrome, **What operating system are you using?...
2022-02-25T18:04:37Z
3.0
[]
[ "tests/important-modifier.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/zEL8hw6BSy" ]
tailwindlabs/tailwindcss
7,665
tailwindlabs__tailwindcss-7665
[ "4659", "3953" ]
f7a9d370c87f0d804c8b5924e1f04eb7ad82cd33
diff --git a/src/corePlugins.js b/src/corePlugins.js --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -1964,10 +1964,16 @@ export let corePlugins = { }) }, - ringColor: ({ matchUtilities, theme }) => { + ringColor: ({ matchUtilities, theme, corePlugins }) => { matchUtilities( { ring...
diff --git a/tests/opacity.test.js b/tests/opacity.test.js --- a/tests/opacity.test.js +++ b/tests/opacity.test.js @@ -95,3 +95,335 @@ test('colors defined as functions work when opacity plugins are disabled', () => `) }) }) + +it('can use rgb helper when defining custom properties for colors (opacity plugins ...
Add support for cssvar colors to `withAlphaVariable` and `withAlphaValue` As mentioned in this discussion https://github.com/tailwindlabs/tailwindcss/discussions/4205 (and can be seen in this demo https://play.tailwindcss.com/Q7aU4F9lpb) currently using css variables to define colors breaks down somewhat if the are use...
It took me a bit to figure out how to get a working local build with a custom config, but I was also able to verify that my demo is now working correctly. (The second square uses a non-rgb variable and therefore it's expected that it isn't semi-transparent) ![image](https://user-images.githubusercontent.com/3532342/...
2022-02-25T18:48:19Z
3.0
[]
[ "tests/opacity.test.js" ]
TypeScript
[ "https://i.imgur.com/Ow4tDFX.jpg", "https://i.imgur.com/MT3T89b.jpg" ]
[ "https://play.tailwindcss.com/Q7aU4F9lpb" ]
tailwindlabs/tailwindcss
7,789
tailwindlabs__tailwindcss-7789
[ "7771" ]
c6097d59fcd3b4a176188327adee488c562ecb8f
diff --git a/src/lib/generateRules.js b/src/lib/generateRules.js --- a/src/lib/generateRules.js +++ b/src/lib/generateRules.js @@ -303,6 +303,19 @@ function looksLikeUri(declaration) { } } +function isParsableNode(node) { + let isParsable = true + + node.walkDecls((decl) => { + if (!isParsableCssValue(decl.n...
diff --git a/tests/arbitrary-values.test.js b/tests/arbitrary-values.test.js --- a/tests/arbitrary-values.test.js +++ b/tests/arbitrary-values.test.js @@ -370,3 +370,17 @@ it('should be possible to read theme values in arbitrary values (with quotes) wh `) }) }) + +it('should not output unparsable arbitrary CSS...
JIT analysis the comments code to add that classes instead of omit it <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?** For exam...
Hey, this is covered in the docs: https://tailwindcss.com/docs/content-configuration#dynamic-class-names. Tailwind CSS does not interpret your source code so dynamic class names like this won't work. Ideally, we would just _not_ generate the CSS here since it's generating values that appear to result in a syntax error....
2022-03-08T17:17:23Z
3.0
[]
[ "tests/arbitrary-values.test.js" ]
TypeScript
[ "https://user-images.githubusercontent.com/13077343/157001625-06c4caa4-b6b8-4e9d-90f9-4dcfd1daa6ee.png" ]
[]
tailwindlabs/tailwindcss
8,091
tailwindlabs__tailwindcss-8091
[ "8079" ]
1d4c5c78bd7b22f11753f216649bc12ce481d5e3
diff --git a/src/util/dataTypes.js b/src/util/dataTypes.js --- a/src/util/dataTypes.js +++ b/src/util/dataTypes.js @@ -42,10 +42,16 @@ export function normalize(value, isRoot = true) { // Add spaces around operators inside calc() that do not follow an operator // or '('. - return value.replace( - /(-?\d*\.?...
diff --git a/tests/normalize-data-types.test.js b/tests/normalize-data-types.test.js new file mode 100644 --- /dev/null +++ b/tests/normalize-data-types.test.js @@ -0,0 +1,42 @@ +import { normalize } from '../src/util/dataTypes' + +let table = [ + ['foo', 'foo'], + ['foo-bar', 'foo-bar'], + ['16/9', '16 / 9'], + + ...
Tailwind incorrect generate CSS variables as minus sign **What version of Tailwind CSS are you using?** 3.0.23 Hi, I am not sure if this issue is linked to the other problems I have reported in #7874 and #7884 as the output issue seems different. I am therefore opening a new issue. If I use the following CS...
Definitely seems like a bug and I think you’re right it’s probably because of the number! Will try to look at this this week πŸ‘πŸ»
2022-04-11T21:39:57Z
3.0
[]
[ "tests/normalize-data-types.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
8,121
tailwindlabs__tailwindcss-8121
[ "8102" ]
206f1d6df536b54feea505f004ab4a626ca47caf
diff --git a/src/lib/generateRules.js b/src/lib/generateRules.js --- a/src/lib/generateRules.js +++ b/src/lib/generateRules.js @@ -382,7 +382,11 @@ function* resolveMatchedPlugins(classCandidate, context) { const twConfigPrefix = context.tailwindConfig.prefix const twConfigPrefixLen = twConfigPrefix.length - i...
diff --git a/tests/prefix.test.js b/tests/prefix.test.js --- a/tests/prefix.test.js +++ b/tests/prefix.test.js @@ -358,3 +358,19 @@ it('prefix with negative values and variants in the safelist', async () => { } `) }) + +it('prefix does not detect and generate unnecessary classes', async () => { + let config =...
πŸ› Unnecessary classes are output <details> <summary>Environments</summary> **What version of Tailwind CSS are you using?** v3.0.24 **What build tool (or framework if it abstracts the build tool) are you using?** postcss v8.4.7, webpack v5.72.0 **What version of Node.js are you using?** v16.13.2 *...
2022-04-15T15:52:00Z
3.0
[]
[ "tests/prefix.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/KvFiBdkhw3", "https://play.tailwindcss.com/00iNAwt2JZ" ]
tailwindlabs/tailwindcss
8,122
tailwindlabs__tailwindcss-8122
[ "8103" ]
5c76de72baa408d6cd32cd7ba97660617da6ff34
diff --git a/src/lib/collapseAdjacentRules.js b/src/lib/collapseAdjacentRules.js --- a/src/lib/collapseAdjacentRules.js +++ b/src/lib/collapseAdjacentRules.js @@ -29,7 +29,11 @@ export default function collapseAdjacentRules() { (currentRule[property] ?? '').replace(/\s+/g, ' ') ) ) { - ...
diff --git a/tests/collapse-adjacent-rules.test.js b/tests/collapse-adjacent-rules.test.js --- a/tests/collapse-adjacent-rules.test.js +++ b/tests/collapse-adjacent-rules.test.js @@ -1,7 +1,7 @@ import fs from 'fs' import path from 'path' -import { run, css } from './util/run' +import { run, html, css } from './uti...
Duplicate @import CSS rules cause undefined behaviour **What version of Tailwind CSS are you using?** v3.0.24 **What build tool (or framework if it abstracts the build tool) are you using?** vite 2.9.1 **What version of Node.js are you using?** v16.11.0 **What browser are you using?** N/A **What...
2022-04-15T16:16:37Z
3.0
[]
[ "tests/collapse-adjacent-rules.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
8,125
tailwindlabs__tailwindcss-8125
[ "7874" ]
e5ed08b5cbdd902dcbb7b25d7c32ad9b474ea1a8
diff --git a/src/lib/expandApplyAtRules.js b/src/lib/expandApplyAtRules.js --- a/src/lib/expandApplyAtRules.js +++ b/src/lib/expandApplyAtRules.js @@ -252,222 +252,228 @@ function processApply(root, context, localCache) { }) // Start the @apply process if we have rules with @apply in them - if (applies.length ...
diff --git a/tests/prefix.test.js b/tests/prefix.test.js --- a/tests/prefix.test.js +++ b/tests/prefix.test.js @@ -374,3 +374,29 @@ it('prefix does not detect and generate unnecessary classes', async () => { expect(result.css).toMatchFormattedCss(css``) }) + +it('supports prefixed utilities using arbitrary values...
Prefix option does not work with custom properties **What version of Tailwind CSS are you using?** v3.0.23 Hi ! I am trying to use the prefix option, but I have found a problem that prevents it to work for more complex patterns. For instance, here is a simple code _without_ any prefix: ``` .button { @ap...
To complement this issue, here are a few other use cases where CSS generation fails with prefix: ``` .accordion-content { @apply tw-ease-[cubic-bezier(0.77,0,0.175,1)]; } ``` Generates this incorrect markup: ``` { transition-timing-function: cubic-bezier(0.77,0,0.175,1); } ``` While the sam...
2022-04-15T20:19:59Z
3.0
[]
[ "tests/prefix.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
8,201
tailwindlabs__tailwindcss-8201
[ "8171" ]
1cc1ace14260f13ba97123c35aeb826edf8cca08
diff --git a/src/util/color.js b/src/util/color.js --- a/src/util/color.js +++ b/src/util/color.js @@ -8,13 +8,15 @@ let ALPHA_SEP = /\s*[,/]\s*/ let CUSTOM_PROPERTY = /var\(--(?:[^ )]*?)\)/ let RGB = new RegExp( - `^rgba?\\(\\s*(${VALUE.source}|${CUSTOM_PROPERTY.source})${SEP.source}(${VALUE.source}|${CUSTOM_PROP...
diff --git a/tests/arbitrary-values.test.js b/tests/arbitrary-values.test.js --- a/tests/arbitrary-values.test.js +++ b/tests/arbitrary-values.test.js @@ -68,6 +68,8 @@ it('should support arbitrary values for various background utilities', () => { <!-- By implicit type --> <div class="bg-[url('/im...
Color custom properties still require hint **What version of Tailwind CSS are you using?** latest insiders (21st April 2022) This PR added the ability to use rgb/hsl custom properties: https://github.com/tailwindlabs/tailwindcss/pull/7933 This unfortunately does not work with prefixes. The following class d...
2022-04-26T11:31:22Z
3.0
[]
[ "tests/arbitrary-values.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
8,204
tailwindlabs__tailwindcss-8204
[ "8165" ]
bb0ab6744b6aaaad4d070341a03429be14975b53
diff --git a/src/lib/defaultExtractor.js b/src/lib/defaultExtractor.js --- a/src/lib/defaultExtractor.js +++ b/src/lib/defaultExtractor.js @@ -1,42 +1,160 @@ -const PATTERNS = [ - /(?:\['([^'\s]+[^<>"'`\s:\\])')/.source, // ['text-lg' -> text-lg - /(?:\["([^"\s]+[^<>"'`\s:\\])")/.source, // ["text-lg" -> text-lg - /...
diff --git a/tests/arbitrary-values.test.css b/tests/arbitrary-values.test.css --- a/tests/arbitrary-values.test.css +++ b/tests/arbitrary-values.test.css @@ -316,6 +316,9 @@ .cursor-\[url\(hand\.cur\)_2_2\2c pointer\] { cursor: url(hand.cur) 2 2, pointer; } +.cursor-\[url\(\'\.\/path_to_hand\.cur\'\)_2_2\2c point...
Compound background-image JIT not working **What version of Tailwind CSS are you using?** tailwindcss@3.0.24 ``` Operating System: Platform: linux Arch: x64 Version: #44-Ubuntu SMP Thu Mar 24 15:35:05 UTC 2022 Binaries: Node: 14.18.1 npm: 8.6.0 Yarn: 1.22.18 ...
2022-04-26T18:31:55Z
3.0
[]
[ "tests/default-extractor.test.js", "tests/basic-usage.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/5sCBtDy3RZ" ]
tailwindlabs/tailwindcss
8,222
tailwindlabs__tailwindcss-8222
[ "7844" ]
3989f77dd3fa5765f818e7b24bc52d95504a2e0c
diff --git a/src/lib/expandApplyAtRules.js b/src/lib/expandApplyAtRules.js --- a/src/lib/expandApplyAtRules.js +++ b/src/lib/expandApplyAtRules.js @@ -8,18 +8,30 @@ import escapeClassName from '../util/escapeClassName' /** @typedef {Map<string, [any, import('postcss').Rule[]]>} ApplyCache */ function extractClasses...
diff --git a/tests/apply.test.js b/tests/apply.test.js --- a/tests/apply.test.js +++ b/tests/apply.test.js @@ -658,6 +658,94 @@ it('should throw when trying to apply an indirect circular dependency with a mod }) }) +it('should not throw when the circular dependency is part of a different selector (1)', () => { + ...
@apply rule cannot pick up grouped utility css selector <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?** **2.2.19** **What ...
I just upgraded our version of tailwind to V3 and now compilation fails because of group classes with `@apply` <img width="797" alt="Screenshot 2022-04-13 at 19 57 46" src="https://user-images.githubusercontent.com/12516195/163252189-6d940bc8-2ffe-4fec-981c-59166b2ae12e.png"> Fulfilled to consider your to be as I ...
2022-04-28T15:56:42Z
3.0
[]
[ "tests/apply.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
8,262
tailwindlabs__tailwindcss-8262
[ "8233" ]
7c337f24fcdedb7b8adc6d25a030dbcdd8181ca1
diff --git a/src/util/formatVariantSelector.js b/src/util/formatVariantSelector.js --- a/src/util/formatVariantSelector.js +++ b/src/util/formatVariantSelector.js @@ -30,6 +30,8 @@ export function formatVariantSelector(current, ...others) { } export function finalizeSelector(format, { selector, candidate, context }...
diff --git a/tests/variants.test.js b/tests/variants.test.js --- a/tests/variants.test.js +++ b/tests/variants.test.js @@ -603,3 +603,131 @@ it('appends variants to the correct place when using postcss documents', () => { `) }) }) + +it('variants support multiple, grouped selectors (html)', () => { + let conf...
Nested and grouped scss selector doesn't work with responsive utility variants <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?** `...
2022-05-03T17:05:40Z
3.0
[]
[ "tests/variants.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
8,313
tailwindlabs__tailwindcss-8313
[ "8305" ]
be51739337584f4b33d44b67baa2ad04b48d3e9d
diff --git a/src/lib/expandApplyAtRules.js b/src/lib/expandApplyAtRules.js --- a/src/lib/expandApplyAtRules.js +++ b/src/lib/expandApplyAtRules.js @@ -471,7 +471,27 @@ function processApply(root, context, localCache) { return } - rule.selector = replaceSelector(parent.selector, ...
diff --git a/tests/apply.test.js b/tests/apply.test.js --- a/tests/apply.test.js +++ b/tests/apply.test.js @@ -1467,3 +1467,84 @@ it('should apply using the updated user CSS when the source has changed', async } `) }) + +it('apply + layer utilities + selector variants (like group) + important selector', async ...
Using custom variants in utilities with important feature **What version of Tailwind CSS are you using?** 3.0.24 **What build tool (or framework if it abstracts the build tool) are you using?** postcss-cli 9.1.0 **What version of Node.js are you using?** 16 **Reproduction URL** https://play.tailw...
Hey! What do you mean by β€œif the variant is used in the HTML” and β€œif the variant is used in the utility”? Can you give examples of each so I understand for sure? I should've been more clear πŸ˜„ By html i mean using variant like so `<p class="text-2xl iframe:text-sm">`. I define standard text size, and then override...
2022-05-09T18:15:01Z
3.0
[]
[ "tests/apply.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/WxwCNZmQFX" ]
tailwindlabs/tailwindcss
8,448
tailwindlabs__tailwindcss-8448
[ "7800" ]
c4e443acc093d8980bf476f14255b793c5065b9a
diff --git a/src/corePlugins.js b/src/corePlugins.js --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -1977,13 +1977,20 @@ export let corePlugins = { ) }, - ringWidth: ({ matchUtilities, addDefaults, addUtilities, theme }) => { - let ringOpacityDefault = theme('ringOpacity.DEFAULT', '0.5') - let ri...
diff --git a/tests/basic-usage.test.js b/tests/basic-usage.test.js --- a/tests/basic-usage.test.js +++ b/tests/basic-usage.test.js @@ -430,3 +430,237 @@ it('supports multiple backgrounds as arbitrary values even if only some are quot `) }) }) + +it('The "default" ring opacity is used by the default ring color ...
Default ringColor has opacity baked into it <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?** v3.0.22 **What build tool (or f...
Hey! This is because `ringOpacity` has a `DEFAULT` of `0.5`. If you override that as well you get the result you want: https://play.tailwindcss.com/CwV0YGg3LS?file=config The whole `ringOpacity` thing isn’t really documented anymore though because we are encouraging the opacity modifier as of v3, so going to leav...
2022-05-26T23:36:32Z
3.0
[]
[ "tests/basic-usage.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/DXtIUnfIC0" ]
tailwindlabs/tailwindcss
8,489
tailwindlabs__tailwindcss-8489
[ "8488" ]
fca70850b2985c0c8add440522f9f2da68c13392
diff --git a/src/corePlugins.js b/src/corePlugins.js --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -1437,7 +1437,8 @@ export let corePlugins = { return { '--tw-gradient-from': toColorValue(value, 'from'), - '--tw-gradient-stops': `var(--tw-gradient-from), var(--tw-gradi...
diff --git a/tests/arbitrary-values.test.css b/tests/arbitrary-values.test.css --- a/tests/arbitrary-values.test.css +++ b/tests/arbitrary-values.test.css @@ -651,18 +651,22 @@ } .from-\[\#da5b66\] { --tw-gradient-from: #da5b66; - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgb(218 91 102 ...
bg-gradient auto-transparent calculation doesn't work when parent element uses two colour gradient **What version of Tailwind CSS are you using?** v3.0.24 **What build tool (or framework if it abstracts the build tool) are you using?** postcss-loader@7.0.0 webpack@5.72.1 Also through cdn package <script src="...
2022-06-01T19:10:34Z
3.0
[]
[ "tests/plugins/gradientColorStops.test.js", "tests/color-opacity-modifiers.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/w4cImWRzrB" ]
tailwindlabs/tailwindcss
8,563
tailwindlabs__tailwindcss-8563
[ "8562" ]
9a5db88e54e47ec1812200f544c3e8aa317a79d5
diff --git a/src/lib/evaluateTailwindFunctions.js b/src/lib/evaluateTailwindFunctions.js --- a/src/lib/evaluateTailwindFunctions.js +++ b/src/lib/evaluateTailwindFunctions.js @@ -162,7 +162,7 @@ let nodeTypePropertyMap = { export default function ({ tailwindConfig: config }) { let functions = { theme: (node, p...
diff --git a/tests/evaluateTailwindFunctions.test.js b/tests/evaluateTailwindFunctions.test.js --- a/tests/evaluateTailwindFunctions.test.js +++ b/tests/evaluateTailwindFunctions.test.js @@ -1024,3 +1024,34 @@ test('Theme function can extract alpha values for colors (8)', () => { expect(result.warnings().length).t...
3.1.0 "unbalanced brackets" error when using theme function with bracket notation **What version of Tailwind CSS are you using?** v3.1.0 **What build tool (or framework if it abstracts the build tool) are you using?** - laravel-mix 6.0.49 - play.tailwindcss.com **What version of Node.js are you using?** ...
2022-06-09T18:05:57Z
3.1
[ "tests/opacity.test.js" ]
[ "tests/evaluateTailwindFunctions.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/kLuW3Vrpv6?file=css" ]
tailwindlabs/tailwindcss
8,569
tailwindlabs__tailwindcss-8569
[ "8559" ]
c44dd7b8e70e9ab633a33b4f82b6f23c914d8f3d
diff --git a/src/lib/defaultExtractor.js b/src/lib/defaultExtractor.js --- a/src/lib/defaultExtractor.js +++ b/src/lib/defaultExtractor.js @@ -25,7 +25,7 @@ function* buildRegExps(context) { let utility = regex.any([ // Arbitrary properties - /\[[^\s:'"]+:[^\s\]]+\]/, + /\[[^\s:'"`]+:[^\s\]]+\]/, ...
diff --git a/tests/default-extractor.test.js b/tests/default-extractor.test.js --- a/tests/default-extractor.test.js +++ b/tests/default-extractor.test.js @@ -415,28 +415,24 @@ test('with single quotes array within template literal', async () => { const extractions = defaultExtractor(`<div class=\`\${['pr-1.5']}\`><...
Tailwind 3.1 regression: No longer keeps classes mentioned in markdown backticks **What version of Tailwind CSS are you using?** For example: v3.1.0 **What build tool (or framework if it abstracts the build tool) are you using?** - parcel - tailwindcss play **What version of Node.js are you using?** For...
2022-06-09T20:43:56Z
3.1
[]
[ "tests/default-extractor.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/XRYewVE3SL" ]
tailwindlabs/tailwindcss
8,604
tailwindlabs__tailwindcss-8604
[ "8601" ]
ad98a619a446a58de24286a3d3e8f442668fd00d
diff --git a/src/lib/defaultExtractor.js b/src/lib/defaultExtractor.js --- a/src/lib/defaultExtractor.js +++ b/src/lib/defaultExtractor.js @@ -37,7 +37,7 @@ function* buildRegExps(context) { regex.any([ regex.pattern([ // Arbitrary values - /-\[[^\s:]+\]/, + /-(?:\...
diff --git a/tests/default-extractor.test.js b/tests/default-extractor.test.js --- a/tests/default-extractor.test.js +++ b/tests/default-extractor.test.js @@ -468,3 +468,11 @@ test('classes in slim templates', async () => { expect(extractions).toContain('italic') expect(extractions).toContain('text-gray-500') })...
Arbitrary `content-['hello']` utilities not recognized when using a prefix like `tw-` <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you usin...
Thanks for reporting! Looks like this only happens when using a prefix, will get it figured out πŸ‘
2022-06-12T14:04:19Z
3.1
[]
[ "tests/default-extractor.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/cjDwL0ojUE" ]
tailwindlabs/tailwindcss
8,608
tailwindlabs__tailwindcss-8608
[ "8594" ]
a9c7e52a59d9532974891a53ff0dc1fe25c5ae94
diff --git a/src/lib/setupContextUtils.js b/src/lib/setupContextUtils.js --- a/src/lib/setupContextUtils.js +++ b/src/lib/setupContextUtils.js @@ -465,11 +465,14 @@ function buildPluginApi(tailwindConfig, context, { variantList, variantMap, offs } if (Array.isArray(result)) { - ...
diff --git a/tests/variants.test.js b/tests/variants.test.js --- a/tests/variants.test.js +++ b/tests/variants.test.js @@ -461,6 +461,57 @@ test('before and after variants are a bit special, and forced to the end (2)', ( }) }) +test('returning non-strings and non-selectors in addVariant', () => { + /** @type {im...
Updating from v3.0.23 to v3.1.1 & 3.1.2 getting variant.replace not a function error Hi All. I am trying to update our project from tailwinds v3.0.23 to the latest. Going to v3.0.24 I have no issues but updating to v3.1.1 or 3.1.2 I am getting this error when I try to run my project. It also comes up as an intellisense...
Getting the same error, in my case, it's related to **tailwindcss-named-groups** plugin. A shot in the dark here, but it might be related to this change: https://github.com/tailwindlabs/tailwindcss/commit/bb4f5dab6b1f44887b0264cc558090b906715d02 You can clear the error by making your `addVariant` calls return `undef...
2022-06-12T14:44:15Z
3.1
[]
[ "tests/variants.test.js" ]
TypeScript
[ "https://user-images.githubusercontent.com/17321059/173164135-1ba43fe6-e938-4d49-99e6-99f6cbaf3e32.png", "https://user-images.githubusercontent.com/17321059/173164218-d91ecf25-53f3-40ec-8d9b-cc7004ba3116.png" ]
[]
tailwindlabs/tailwindcss
8,615
tailwindlabs__tailwindcss-8615
[ "8614" ]
d1165637d341af0536e07a88858a5bef75d8cc39
diff --git a/src/util/dataTypes.js b/src/util/dataTypes.js --- a/src/util/dataTypes.js +++ b/src/util/dataTypes.js @@ -40,9 +40,9 @@ export function normalize(value, isRoot = true) { value = value.trim() } - // Add spaces around operators inside calc() that do not follow an operator + // Add spaces around o...
diff --git a/tests/normalize-data-types.test.js b/tests/normalize-data-types.test.js --- a/tests/normalize-data-types.test.js +++ b/tests/normalize-data-types.test.js @@ -20,7 +20,7 @@ let table = [ ['var(--foo)', 'var(--foo)'], ['var(--headings-h1-size)', 'var(--headings-h1-size)'], - // calc(…) get's spaces ...
Regression: Tailwind producing invalid CSS for arbitrary values with arithmetic operators <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you ...
Current workarounds in Tailwind v3.1.1 and above: - Wrapping arithmetic operations in a `calc()` call: `w-[min(calc(50vw+100px))]` - Using `_` to insert spaces: `w-[min(50vw_+_100px)]` Both not ideal in the long term.
2022-06-13T08:23:31Z
3.1
[]
[ "tests/normalize-data-types.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/Y4DN00mQfb" ]
tailwindlabs/tailwindcss
8,622
tailwindlabs__tailwindcss-8622
[ "8610" ]
22eaad17c33583b841d2086a9386dd5c1770061c
diff --git a/src/corePlugins.js b/src/corePlugins.js --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -14,6 +14,7 @@ import { version as tailwindVersion } from '../package.json' import log from './util/log' import { normalizeScreens } from './util/normalizeScreens' import { formatBoxShadowValue, parseBoxShadowVa...
diff --git a/tests/parallel-variants.test.js b/tests/parallel-variants.test.js --- a/tests/parallel-variants.test.js +++ b/tests/parallel-variants.test.js @@ -85,3 +85,52 @@ test('parallel variants can be generated using a function that returns parallel `) }) }) + +test('a function that returns parallel varian...
Safari ignores alpha channel in colors in `::marker`, which makes styling them with Tailwind impossible <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwin...
For anyone else that stumbles into this, the workaround I've found is to add this to my CSS file: ``` css ::marker { color: theme(colors.slate.500); } ``` But ideally this should be handled from the HTML to make it easier to manage together with the other styles. Looked at this quickly, it seems like the th...
2022-06-13T18:13:17Z
3.1
[]
[ "tests/parallel-variants.test.js", "tests/variants.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/iea3Szbz1t" ]
tailwindlabs/tailwindcss
8,625
tailwindlabs__tailwindcss-8625
[ "8619" ]
aad299cf90d8679fb9fad6d519749365d9c6da08
diff --git a/src/lib/evaluateTailwindFunctions.js b/src/lib/evaluateTailwindFunctions.js --- a/src/lib/evaluateTailwindFunctions.js +++ b/src/lib/evaluateTailwindFunctions.js @@ -40,9 +40,7 @@ function listKeys(obj) { } function validatePath(config, path, defaultValue, themeOpts = {}) { - const pathString = Array....
diff --git a/tests/evaluateTailwindFunctions.test.js b/tests/evaluateTailwindFunctions.test.js --- a/tests/evaluateTailwindFunctions.test.js +++ b/tests/evaluateTailwindFunctions.test.js @@ -1055,3 +1055,53 @@ test('Theme functions can reference values with slashes in brackets', () => { expect(result.warnings().le...
3.1 version, theme function reports lint error <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?** v3.1.2 **What build tool (or...
2022-06-13T19:28:51Z
3.1
[]
[ "tests/evaluateTailwindFunctions.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
8,652
tailwindlabs__tailwindcss-8652
[ "8643" ]
3cf48bf174fe7347f848d3aa16598e7a375639fe
diff --git a/src/lib/evaluateTailwindFunctions.js b/src/lib/evaluateTailwindFunctions.js --- a/src/lib/evaluateTailwindFunctions.js +++ b/src/lib/evaluateTailwindFunctions.js @@ -183,9 +183,15 @@ export default function ({ tailwindConfig: config }) { throw node.error(error) } - if (alpha !== unde...
diff --git a/tests/evaluateTailwindFunctions.test.js b/tests/evaluateTailwindFunctions.test.js --- a/tests/evaluateTailwindFunctions.test.js +++ b/tests/evaluateTailwindFunctions.test.js @@ -1025,6 +1025,36 @@ test('Theme function can extract alpha values for colors (8)', () => { }) }) +test('Theme functions repl...
theme() with css variable colors doesn't work in .css files <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?** v3.1.3 **What b...
2022-06-15T18:57:16Z
3.1
[]
[ "tests/evaluateTailwindFunctions.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/eoS0xJO1cm" ]
tailwindlabs/tailwindcss
8,687
tailwindlabs__tailwindcss-8687
[ "8660" ]
77c248cabb38d085df9ce9ca32e4f865f07bcd27
diff --git a/src/lib/defaultExtractor.js b/src/lib/defaultExtractor.js --- a/src/lib/defaultExtractor.js +++ b/src/lib/defaultExtractor.js @@ -64,31 +64,41 @@ function* buildRegExps(context) { ]), ]) - yield regex.pattern([ - // Variants - '((?=((', - regex.any( - [ - regex.pattern([/([^...
diff --git a/tests/arbitrary-variants.test.js b/tests/arbitrary-variants.test.js --- a/tests/arbitrary-variants.test.js +++ b/tests/arbitrary-variants.test.js @@ -493,3 +493,37 @@ test('keeps escaped underscores in arbitrary variants mixed with normal variants `) }) }) + +test('allows attribute variants with q...
no css output for inline classes which specify an attribute value in an arbitrary variant <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you ...
2022-06-20T13:46:39Z
3.1
[]
[ "tests/arbitrary-variants.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com>'s", "https://play.tailwindcss.com", "https://play.tailwindcss.com/zYyWNdDUB4" ]
tailwindlabs/tailwindcss
8,688
tailwindlabs__tailwindcss-8688
[ "8661" ]
c5e7857362148aaadfa294f51da7d343c87e1199
diff --git a/src/util/dataTypes.js b/src/util/dataTypes.js --- a/src/util/dataTypes.js +++ b/src/util/dataTypes.js @@ -49,9 +49,7 @@ export function normalize(value, isRoot = true) { ) }) - // Add spaces around some operators not inside calc() that do not follow an operator - // or '('. - return value.repl...
diff --git a/tests/arbitrary-values.test.css b/tests/arbitrary-values.test.css --- a/tests/arbitrary-values.test.css +++ b/tests/arbitrary-values.test.css @@ -107,7 +107,7 @@ margin-top: clamp(30px, 100px); } .aspect-\[16\/9\] { - aspect-ratio: 16 / 9; + aspect-ratio: 16/9; } .aspect-\[var\(--aspect\)\] { a...
Automated space adding to look-like-mathematic-operators leads to multiple errors The function "normalize" with dataTypes.js leads to errors when using with some plugins like plaiceholder within 11ty for example. https://github.com/tailwindlabs/tailwindcss/blob/master/src/util/dataTypes.js Line 54 ![grafik](https:/...
I tested this again. While doing a mathematic calculation you need the space before and after the operator. But without a css math function like calc, min, max, clamp for example the calculation won't work So this is useless or am I completely wrong If I got a "go" by any main developer I'd change or remove this l...
2022-06-20T14:42:08Z
3.1
[]
[ "tests/normalize-data-types.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
8,772
tailwindlabs__tailwindcss-8772
[ "8702" ]
c8c4852b87f6cb9a966eba62698b74efab0abc51
diff --git a/src/lib/defaultExtractor.js b/src/lib/defaultExtractor.js --- a/src/lib/defaultExtractor.js +++ b/src/lib/defaultExtractor.js @@ -1,4 +1,4 @@ -import { flagEnabled } from '../featureFlags.js' +import { flagEnabled } from '../featureFlags' import * as regex from './regex' export function defaultExtracto...
diff --git a/tests/prefix.test.js b/tests/prefix.test.js --- a/tests/prefix.test.js +++ b/tests/prefix.test.js @@ -400,3 +400,120 @@ it('supports prefixed utilities using arbitrary values', async () => { } `) }) + +it('supports non-word prefixes (1)', async () => { + let config = { + prefix: '@', + cont...
Arbitrary Values Not Supported for Special-Character Prefixes (e.g., `@`) in 3.1 ## What version of Tailwind CSS are you using? 3.1.4 ## What build tool (or framework if it abstracts the build tool) are you using? `next@12.1.6` ## What version of Node.js are you using? v16.14.0 ## What browser are you...
2022-07-04T18:25:49Z
3.1
[]
[ "tests/prefix.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/0B55HN10nd" ]
tailwindlabs/tailwindcss
8,773
tailwindlabs__tailwindcss-8773
[ "8626" ]
5191ec1c006dfd6ac911e53d30f12993fe4eb586
diff --git a/src/lib/generateRules.js b/src/lib/generateRules.js --- a/src/lib/generateRules.js +++ b/src/lib/generateRules.js @@ -129,6 +129,7 @@ function applyVariant(variant, matches, context) { } let args + let isArbitraryVariant = false // Find partial arbitrary variants if (variant.endsWith(']') ...
diff --git a/tests/arbitrary-variants.test.js b/tests/arbitrary-variants.test.js --- a/tests/arbitrary-variants.test.js +++ b/tests/arbitrary-variants.test.js @@ -527,3 +527,42 @@ test('allows attribute variants with quotes', () => { `) }) }) + +test('classes in arbitrary variants should not be prefixed', () =...
Classes inside arbitrary variants are incorrectly being prefixed Classes inside arbitrary variants are prefixed when they shouldn't be as they're not tailwind utilities. The utility `[.foo_&]:tw-text-red-400` incorrectly generates a selector referencing `.tw-foo` instead of `.foo` See: https://github.com/tailwind...
I put \ in front of '.foo_&' and it is some how giving selector .foo https://play.tailwindcss.com/LWujxXokrG @thecrypticace I built upon your example and created an example to test classes, IDs, and attributes. It appears IDs work as expected, but both classes and attributes experience bugs when using prefixes, ...
2022-07-04T18:43:56Z
3.1
[]
[ "tests/arbitrary-variants.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/GCMzAzdKNY" ]
tailwindlabs/tailwindcss
8,831
tailwindlabs__tailwindcss-8831
[ "8824" ]
b4e637e2e096a9d6f2210efba9541f6fd4f28e56
diff --git a/src/lib/evaluateTailwindFunctions.js b/src/lib/evaluateTailwindFunctions.js --- a/src/lib/evaluateTailwindFunctions.js +++ b/src/lib/evaluateTailwindFunctions.js @@ -157,26 +157,52 @@ let nodeTypePropertyMap = { decl: 'value', } -export default function ({ tailwindConfig: config }) { - let functions...
diff --git a/tests/evaluateTailwindFunctions.test.js b/tests/evaluateTailwindFunctions.test.js --- a/tests/evaluateTailwindFunctions.test.js +++ b/tests/evaluateTailwindFunctions.test.js @@ -1135,3 +1135,51 @@ test('Theme functions with alpha with quotes value around color only', () => { expect(result.warnings().l...
Tailwind error when using theme() in css Adding following styles to css leads to an error: ``` .test { --shadow: theme("boxShadow.glow-8/28/20"); box-shadow: var(---shadow); } ``` error: ``` 'boxShadow.glow-8/28' does not exist in your theme config. Did you mean 'boxShadow.glow-8/28/20'? ``` **What...
2022-07-11T14:41:24Z
3.1
[]
[ "tests/evaluateTailwindFunctions.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/xlki3pMe9n?file=css" ]
tailwindlabs/tailwindcss
8,971
tailwindlabs__tailwindcss-8971
[ "8966" ]
da268f63e63d2f166950ec77fa76cc088f8d83b4
diff --git a/src/lib/generateRules.js b/src/lib/generateRules.js --- a/src/lib/generateRules.js +++ b/src/lib/generateRules.js @@ -471,7 +471,11 @@ function splitWithSeparator(input, separator) { function* recordCandidates(matches, classCandidate) { for (const match of matches) { - match[1].raws.tailwind = { ....
diff --git a/tests/__snapshots__/source-maps.test.js.snap b/tests/__snapshots__/source-maps.test.js.snap --- a/tests/__snapshots__/source-maps.test.js.snap +++ b/tests/__snapshots__/source-maps.test.js.snap @@ -347,3 +347,17 @@ Array [ "2:18 -> 440:0", ] `; + +exports[`source maps for layer rules are not rewritten...
Incorrect work of url() in css file when using vite.js <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?** "tailwindcss": "3.1.6" ...
2022-07-27T15:45:05Z
3.1
[]
[ "tests/source-maps.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
9,008
tailwindlabs__tailwindcss-9008
[ "8991" ]
0b5bfc8065e928caa7cf11a7bac37fda10411b6f
diff --git a/src/util/resolveConfig.js b/src/util/resolveConfig.js --- a/src/util/resolveConfig.js +++ b/src/util/resolveConfig.js @@ -180,7 +180,7 @@ function resolveFunctionKeys(object) { val = val[path[index++]] let shouldResolveAsFn = - isFunction(val) && (path.alpha === undefined || in...
diff --git a/tests/opacity.test.js b/tests/opacity.test.js --- a/tests/opacity.test.js +++ b/tests/opacity.test.js @@ -761,3 +761,70 @@ it('Theme functions can reference values with slashes in brackets', () => { `) }) }) + +it('works with opacity values defined as a placeholder or a function in when colors is ...
Custom color opacity in theme function ### Discussed in https://github.com/tailwindlabs/tailwindcss/discussions/8987 <div type='discussions-op-text'> <sup>Originally posted by **dawaltconley** July 29, 2022</sup> Hi, I'm trying to reference custom colors with variable opacity elsewhere in my theme config and can...
2022-08-02T15:05:09Z
3.1
[]
[ "tests/opacity.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
9,027
tailwindlabs__tailwindcss-9027
[ "9023" ]
2bfd3e7423c71bb505c97949c57a7e3ef36530eb
diff --git a/src/lib/expandApplyAtRules.js b/src/lib/expandApplyAtRules.js --- a/src/lib/expandApplyAtRules.js +++ b/src/lib/expandApplyAtRules.js @@ -499,6 +499,12 @@ function processApply(root, context, localCache) { }) } + // It could be that the node we were inserted was removed because...
diff --git a/tests/apply.test.js b/tests/apply.test.js --- a/tests/apply.test.js +++ b/tests/apply.test.js @@ -1548,3 +1548,39 @@ it('apply + user CSS + selector variants (like group) + important selector (2)', } `) }) + +it('can apply user utilities that start with a dash', async () => { + let config = { + ...
When defining dash-prefixed utility classes in a @layer, using them in an @apply statement throws a build error <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of...
2022-08-04T18:19:30Z
3.1
[]
[ "tests/apply.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
9,070
tailwindlabs__tailwindcss-9070
[ "9066" ]
21849031bd673de84f58a8fa3170162640e2ac2c
diff --git a/src/util/getAllConfigs.js b/src/util/getAllConfigs.js --- a/src/util/getAllConfigs.js +++ b/src/util/getAllConfigs.js @@ -11,9 +11,10 @@ export default function getAllConfigs(config) { // Add experimental configs here... respectDefaultRingColorOpacity: { theme: { - ringColor: { + ...
diff --git a/tests/basic-usage.test.js b/tests/basic-usage.test.js --- a/tests/basic-usage.test.js +++ b/tests/basic-usage.test.js @@ -661,3 +661,31 @@ it('A bare ring-opacity utility is supported when using respectDefaultRingColorO `) }) }) + +it('Ring color utilities are generated when using respectDefaultRi...
Not possible to set ring color with `future.respectDefaultRingColorOpacity` enabled <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you using?...
2022-08-10T14:28:51Z
3.1
[]
[ "tests/basic-usage.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/N1ko1lZjzn?file=config" ]
tailwindlabs/tailwindcss
9,107
tailwindlabs__tailwindcss-9107
[ "9093" ]
b0018e20bf250a2e4df1f39f73e763662538e524
diff --git a/src/lib/expandApplyAtRules.js b/src/lib/expandApplyAtRules.js --- a/src/lib/expandApplyAtRules.js +++ b/src/lib/expandApplyAtRules.js @@ -34,13 +34,13 @@ function extractClasses(node) { return Object.assign(classes, { groups: normalizedGroups }) } -let selectorExtractor = parser((root) => root.nodes....
diff --git a/tests/apply.test.js b/tests/apply.test.js --- a/tests/apply.test.js +++ b/tests/apply.test.js @@ -1584,3 +1584,105 @@ it('can apply user utilities that start with a dash', async () => { } `) }) + +it('can apply joined classes when using elements', async () => { + let config = { + content: [{ r...
Sibling selectors of components don't work on classes applying them **What version of Tailwind CSS are you using?** For example: v3.1.8 **What build tool (or framework if it abstracts the build tool) are you using?** Tailwind Play **What browser are you using?** Chrome **What operating system are you ...
2022-08-15T15:51:54Z
3.1
[]
[ "tests/apply.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/Gd9jsdpkCi?file=css" ]
tailwindlabs/tailwindcss
9,208
tailwindlabs__tailwindcss-9208
[ "9205" ]
da850424dcdf011acda795b52c87cbd28628c943
diff --git a/src/lib/expandTailwindAtRules.js b/src/lib/expandTailwindAtRules.js --- a/src/lib/expandTailwindAtRules.js +++ b/src/lib/expandTailwindAtRules.js @@ -177,16 +177,12 @@ export default function expandTailwindAtRules(context) { let classCacheCount = context.classCache.size env.DEBUG && console.tim...
diff --git a/tests/important-boolean.test.js b/tests/important-boolean.test.js --- a/tests/important-boolean.test.js +++ b/tests/important-boolean.test.js @@ -1,7 +1,8 @@ import fs from 'fs' import path from 'path' +import * as sharedState from '../src/lib/sharedState' -import { run, css } from './util/run' +import...
Using important: true leads to duplicate rules in output This issue supersedes #9203 which was a bit of a false start. V3.1.18 Tailwind CLI Node v14.18.1 Chrome Window 10 (No Docker or WSL) Command line : npx tailwindcss --output twout.css --watch -i twbase.css Reproduction URL: https://github.com/willdean/Tw...
In case this raises questions about PostCSS: ``` >npm -g list postcss C:\Users\will\AppData\Roaming\npm `-- tailwindcss@3.1.8 +-- postcss-import@14.1.0 | `-- postcss@8.4.16 deduped +-- postcss-js@4.0.0 | `-- postcss@8.4.16 deduped +-- postcss-load-config@3.1.4 | `-- postcss@8.4.16 deduped +-- p...
2022-08-29T17:47:47Z
3.1
[]
[ "tests/important-boolean.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/" ]
tailwindlabs/tailwindcss
9,262
tailwindlabs__tailwindcss-9262
[ "9056" ]
09f38d296434a9b73ccfbdba6c7ebf1438727832
diff --git a/src/util/formatVariantSelector.js b/src/util/formatVariantSelector.js --- a/src/util/formatVariantSelector.js +++ b/src/util/formatVariantSelector.js @@ -29,6 +29,58 @@ export function formatVariantSelector(current, ...others) { return current } +/** + * Given any node in a selector this gets the "si...
diff --git a/tests/variants.test.js b/tests/variants.test.js --- a/tests/variants.test.js +++ b/tests/variants.test.js @@ -855,3 +855,92 @@ test('hoverOnlyWhenSupported adds hover and pointer media features by default', `) }) }) + +test('multi-class utilities handle selector-mutating variants correctly', () =>...
CSS rules of the form `.foo.bar` don't behave as expected with `peer-checked:bar` **What version of Tailwind CSS are you using?** v3.1.8 **What build tool (or framework if it abstracts the build tool) are you using?** postcss-cli 10.0.0 **What version of Node.js are you using?** v16.14.0 **What browse...
Hey! Can you share a more real-world example of why you would even be doing this? I agree the behavior doesn't feel right here but the usage looks really bizarre to me (`.bar` is not a utility in your example, it's part of a complex selector), and I'm honestly more inclined to throw an exception here than to change the...
2022-09-05T15:43:26Z
3.1
[]
[ "tests/variants.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/4zvuUG5xci" ]
tailwindlabs/tailwindcss
9,309
tailwindlabs__tailwindcss-9309
[ "9303" ]
cc1be47a4fa2de74bc63b0b123f335271ec1bc68
diff --git a/src/util/formatVariantSelector.js b/src/util/formatVariantSelector.js --- a/src/util/formatVariantSelector.js +++ b/src/util/formatVariantSelector.js @@ -81,6 +81,29 @@ function resortSelector(sel) { return sel } +function eliminateIrrelevantSelectors(sel, base) { + let hasClassesMatchingCandidate =...
diff --git a/tests/variants.test.js b/tests/variants.test.js --- a/tests/variants.test.js +++ b/tests/variants.test.js @@ -944,3 +944,88 @@ test('multi-class utilities handle selector-mutating variants correctly', () => `) }) }) + +test('class inside pseudo-class function :has', () => { + let config = { + ...
Adding custom utilities that use `:where()` selector, generates empty CSS selector when used with a responsive prefix <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What vers...
2022-09-11T21:56:32Z
3.1
[]
[ "tests/variants.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/6lUxA2zYzo?file=config" ]
tailwindlabs/tailwindcss
9,319
tailwindlabs__tailwindcss-9319
[ "9318" ]
527031d5f679a958a7d0de045a057a1e32db2985
diff --git a/src/lib/evaluateTailwindFunctions.js b/src/lib/evaluateTailwindFunctions.js --- a/src/lib/evaluateTailwindFunctions.js +++ b/src/lib/evaluateTailwindFunctions.js @@ -7,6 +7,7 @@ import buildMediaQuery from '../util/buildMediaQuery' import { toPath } from '../util/toPath' import { withAlphaValue } from '....
diff --git a/tests/evaluateTailwindFunctions.test.js b/tests/evaluateTailwindFunctions.test.js --- a/tests/evaluateTailwindFunctions.test.js +++ b/tests/evaluateTailwindFunctions.test.js @@ -1,14 +1,18 @@ +import fs from 'fs' +import path from 'path' import postcss from 'postcss' import plugin from '../src/lib/evalua...
Tailwind compiler crashes when you try to `[--box-shadow:theme('boxShadow.doesNotExist')]` **What version of Tailwind CSS are you using?** v3.1.8 **What build tool (or framework if it abstracts the build tool) are you using?** vite 3.0.9, postcss 8.4.14 postcss-cli 8.3.1 **What version of Node.js are you us...
2022-09-13T18:05:38Z
3.1
[]
[ "tests/evaluateTailwindFunctions.test.js" ]
TypeScript
[]
[]
tailwindlabs/tailwindcss
9,991
tailwindlabs__tailwindcss-9991
[ "9977" ]
a1249779ec74693023c26f852a3f9c6edfa7ba7c
diff --git a/src/util/formatVariantSelector.js b/src/util/formatVariantSelector.js --- a/src/util/formatVariantSelector.js +++ b/src/util/formatVariantSelector.js @@ -250,7 +250,18 @@ export function finalizeSelector( let pseudoElementsBC = [':before', ':after', ':first-line', ':first-letter'] // These pseudo-eleme...
diff --git a/tests/variants.test.js b/tests/variants.test.js --- a/tests/variants.test.js +++ b/tests/variants.test.js @@ -1096,3 +1096,52 @@ test('variant functions returning arrays should output correct results when nest } `) }) + +test.only('arbitrary variant selectors should not re-order scrollbar pseudo c...
arbitrary variants with modifiers inside the selector are generated in the wrong order <!-- Please provide all of the information requested below. We're a small team and without all of this information it's not possible for us to help and your bug report will be closed. --> **What version of Tailwind CSS are you usi...
2022-12-02T17:06:59Z
3.2
[]
[ "tests/variants.test.js" ]
TypeScript
[]
[ "https://play.tailwindcss.com/RWATzeVv1a" ]