Skip to content

Commit 09f1a89

Browse files
committed
Fix stretch prefix
1 parent b764cc0 commit 09f1a89

File tree

3 files changed

+31
-27
lines changed

3 files changed

+31
-27
lines changed

data/prefixes.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -594,17 +594,21 @@ f(prefixIntrinsic, { match: /x|\s#4/ }, browsers =>
594594
)
595595

596596
f(prefixIntrinsic, { match: /x|\s#5/ }, browsers =>
597-
prefix(['stretch'], {
597+
prefix(['fit-content'], {
598598
props: sizeProps,
599599
feature: 'intrinsic-width',
600600
browsers
601601
})
602602
)
603603

604-
f(prefixIntrinsic, { match: /x|\s#5/ }, browsers =>
605-
prefix(['fit-content'], {
604+
// Stretch value
605+
606+
let prefixStretch = require('caniuse-lite/data/features/css-width-stretch')
607+
608+
f(prefixStretch, browsers =>
609+
prefix(['stretch'], {
606610
props: sizeProps,
607-
feature: 'intrinsic-width',
611+
feature: 'css-width-stretch',
608612
browsers
609613
})
610614
)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
},
3535
"dependencies": {
3636
"browserslist": "^4.19.1",
37-
"caniuse-lite": "^1.0.30001296",
37+
"caniuse-lite": "^1.0.30001297",
3838
"fraction.js": "^4.1.2",
3939
"normalize-range": "^0.1.2",
4040
"picocolors": "^1.0.0",

pnpm-lock.yaml

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)