Skip to content

Commit

Permalink
Fix fit-content in Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Oct 29, 2019
1 parent 9eb27f0 commit 89d723c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion data/prefixes.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ let sizeProps = [
]

f(intrinsic, browsers =>
prefix(['max-content', 'min-content', 'fit-content'], {
prefix(['max-content', 'min-content'], {
props: sizeProps,
feature: 'intrinsic-width',
browsers
Expand All @@ -426,6 +426,14 @@ f(intrinsic, { match: /x|\s#4/ }, browsers =>
})
)

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

// Zoom cursors
f(require('caniuse-lite/data/features/css3-cursors-newer'), browsers =>
prefix(['zoom-in', 'zoom-out'], {
Expand Down

0 comments on commit 89d723c

Please sign in to comment.