Skip to content

Commit 63403d8

Browse files
RobinMalfaitthecrypticace
authored andcommitted
Ensure repeating-conic-gradient is detected as an image (#11180)
* ensure `repeating-conic-gradient` is detected as an image * update changelog
1 parent 79b5b12 commit 63403d8

5 files changed

+10
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Fix issue where some pseudo-element variants generated the wrong selector ([#10943](https://github.com/tailwindlabs/tailwindcss/pull/10943), [#10962](https://github.com/tailwindlabs/tailwindcss/pull/10962), [#11111](https://github.com/tailwindlabs/tailwindcss/pull/11111))
1313
- Fix parsing of `theme()` inside `calc()` when there are no spaces around operators ([#11157](https://github.com/tailwindlabs/tailwindcss/pull/11157))
14+
- Ensure `repeating-conic-gradient` is detected as an image ([#11180](https://github.com/tailwindlabs/tailwindcss/pull/11180))
1415

1516
## [3.3.2] - 2023-04-25
1617

src/util/dataTypes.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,12 @@ export function image(value) {
188188
}
189189

190190
let gradientTypes = new Set([
191+
'conic-gradient',
191192
'linear-gradient',
192193
'radial-gradient',
194+
'repeating-conic-gradient',
193195
'repeating-linear-gradient',
194196
'repeating-radial-gradient',
195-
'conic-gradient',
196197
])
197198
export function gradient(value) {
198199
value = normalize(value)

tests/arbitrary-values.oxide.test.css

+3
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,9 @@
652652
.bg-\[linear-gradient\(to_left\,rgb\(var\(--green\)\)\,blue\)\] {
653653
background-image: linear-gradient(to left, rgb(var(--green)), blue);
654654
}
655+
.bg-\[repeating-conic-gradient\(\#F8F9FA_0\%_25\%\,_white_0\%_50\%\)\] {
656+
background-image: repeating-conic-gradient(#f8f9fa 0% 25%, white 0% 50%);
657+
}
655658
.bg-\[url\(\'\/path-to-image\.png\'\)\] {
656659
background-image: url('/path-to-image.png');
657660
}

tests/arbitrary-values.test.css

+3
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,9 @@
681681
.bg-\[linear-gradient\(to_left\,rgb\(var\(--green\)\)\,blue\)\] {
682682
background-image: linear-gradient(to left, rgb(var(--green)), blue);
683683
}
684+
.bg-\[repeating-conic-gradient\(\#F8F9FA_0\%_25\%\,_white_0\%_50\%\)\] {
685+
background-image: repeating-conic-gradient(#f8f9fa 0% 25%, white 0% 50%);
686+
}
684687
.bg-\[url\(\'\/path-to-image\.png\'\)\] {
685688
background-image: url('/path-to-image.png');
686689
}

tests/arbitrary-values.test.html

+1
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@
206206
<div class="bg-[var(--value1)_var(--value2)]"></div>
207207
<div class="bg-[color:var(--value1)_var(--value2)]"></div>
208208
<div class="bg-[linear-gradient(to_left,rgb(var(--green)),blue)]"></div>
209+
<div class="bg-[repeating-conic-gradient(#F8F9FA_0%_25%,_white_0%_50%)]"></div>
209210

210211
<div class="bg-[url('/path-to-image.png')] bg-[url:var(--url)]"></div>
211212
<div class="bg-[linear-gradient(#eee,#fff)]"></div>

0 commit comments

Comments
 (0)