Skip to content

Commit

Permalink
Fix fit-content for Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Aug 2, 2024
1 parent cf80824 commit ee43652
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions data/prefixes.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,13 +597,21 @@ f(prefixIntrinsic, { match: /x|\s#4/ }, browsers =>
})
)

f(prefixIntrinsic, { match: /x|\s#5/ }, browsers =>
prefix(['fit-content'], {
browsers,
f(prefixIntrinsic, { match: /x|\s#5/ }, browsers => {
let ffFix = browsers.filter(i => {
let [name, version] = i.split(' ')
if (name === 'firefox' || name === 'and_ff') {
return parseInt(version) < 94
} else {
return true
}
})
return prefix(['fit-content'], {
browsers: ffFix,
feature: 'intrinsic-width',
props: sizeProps
})
)
})

// Stretch value

Expand Down

0 comments on commit ee43652

Please sign in to comment.