This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Report of CSS Grid Layout Issue in Firefox: auto-fit Value in repeat Function Not Supported

  • 1 reply
  • 0 have this problem
  • 1 view
  • Last reply by TyDraniu

more options

Dear Firefox Support Team,

I am writing to report a problem that I have encountered while using Firefox browser. Specifically, I have noticed that the CSS property grid-template-columns: repeat(auto-fit, minmax(120px, 60px)) does not seem to work as expected in Firefox. The grid items overflow the container and do not adjust to the available space.

I have also tested the same code in Google Chrome and it works properly without any issues. This indicates that the problem is specific to Firefox and related to the lack of support for the auto-fit & minmax value in the repeatfunction. Therefore, I kindly request that you investigate this issue and provide a solution or workaround that would allow me to use the auto-fit value in Firefox.

Thank you for your attention to this matter.

Sincerely, Yoosef Alipour

Dear Firefox Support Team, I am writing to report a problem that I have encountered while using Firefox browser. Specifically, I have noticed that the CSS property grid-template-columns: repeat(auto-fit, minmax(120px, 60px)) does not seem to work as expected in Firefox. The grid items overflow the container and do not adjust to the available space. I have also tested the same code in Google Chrome and it works properly without any issues. This indicates that the problem is specific to Firefox and related to the lack of support for the auto-fit & minmax value in the repeatfunction. Therefore, I kindly request that you investigate this issue and provide a solution or workaround that would allow me to use the auto-fit value in Firefox. Thank you for your attention to this matter. Sincerely, Yoosef Alipour
Attached screenshots

All Replies (1)

more options

Perhaps it's better to report it on https://bugzilla.mozilla.org/enter_bug.cgi . There it goes directly to devs.