Skip to content

Commit

Permalink
Fix stretch prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Jan 7, 2022
1 parent b764cc0 commit 09f1a89
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 27 deletions.
12 changes: 8 additions & 4 deletions data/prefixes.js
Original file line number Diff line number Diff line change
Expand Up @@ -594,17 +594,21 @@ f(prefixIntrinsic, { match: /x|\s#4/ }, browsers =>
)

f(prefixIntrinsic, { match: /x|\s#5/ }, browsers =>
prefix(['stretch'], {
prefix(['fit-content'], {
props: sizeProps,
feature: 'intrinsic-width',
browsers
})
)

f(prefixIntrinsic, { match: /x|\s#5/ }, browsers =>
prefix(['fit-content'], {
// Stretch value

let prefixStretch = require('caniuse-lite/data/features/css-width-stretch')

f(prefixStretch, browsers =>
prefix(['stretch'], {
props: sizeProps,
feature: 'intrinsic-width',
feature: 'css-width-stretch',
browsers
})
)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"dependencies": {
"browserslist": "^4.19.1",
"caniuse-lite": "^1.0.30001296",
"caniuse-lite": "^1.0.30001297",
"fraction.js": "^4.1.2",
"normalize-range": "^0.1.2",
"picocolors": "^1.0.0",
Expand Down
44 changes: 22 additions & 22 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 09f1a89

Please sign in to comment.