Testing

CSS Grid: Compatibility, Features, Known Issues

CSS Grid works in Chrome 57+, Edge 16+, Firefox 52+, Safari 10.1+, Opera 44+, and Samsung Internet 6.2+. Browser support, key features, and known issues.

Author

Prince Dewani

May 6, 2026

CSS Grid is a W3C two-dimensional CSS layout system that places elements into rows and columns. It supports Chrome 57+, Edge 16+, Firefox 52+, Safari 10.1+ on macOS, Safari 10.3+ on iOS, Opera 44+, and Samsung Internet 6.2+, while Internet Explorer 10 and 11 only support the outdated -ms- prefixed syntax.

This guide covers what CSS Grid is, the browsers that support it, the key features, the difference between Grid and Flexbox, the production use cases, and the known issues.

What is CSS Grid?

CSS Grid is a CSS layout module that places child elements into a two-dimensional grid of rows and columns. The W3C CSS Working Group maintains the specification, which is currently CSS Grid Layout Module Level 1 at Candidate Recommendation Draft status. The module entry point is the display: grid declaration on a container element.

Which browsers does CSS Grid support?

CSS Grid works without a vendor prefix in every modern browser, with a few partial-support quirks in Edge 12 to 15 and Internet Explorer 10 to 11.

Loading browser compatibility data...

CSS Grid compatibility in Chrome

CSS Grid works on desktop from Chrome 57 on, and on Android from Chrome 57 on. Chrome 4 to 56 did not support the modern unprefixed CSS Grid spec.

CSS Grid compatibility in Edge

Edge supports the modern unprefixed CSS Grid spec from Edge 16 on. Edge 12 to 15 (the EdgeHTML versions) had partial support that used the older -ms- prefixed syntax inherited from Internet Explorer. Edge 79 and later are Chromium-based and inherit Chrome's full support.

CSS Grid compatibility in Firefox

CSS Grid works on desktop from Firefox 52 on, and on Android from Firefox 52 on. Firefox 2 to 51 did not support CSS Grid. Firefox also ships a built-in Grid Inspector in DevTools that overlays track lines on a live page.

CSS Grid compatibility in Safari

CSS Grid works on macOS from Safari 10.1 on, and on iOS and iPadOS from Safari 10.3 on. Earlier versions of Safari and Mobile Safari did not support CSS Grid. The WebKit team shipped the unprefixed implementation directly, so no -webkit- prefix has ever been required.

CSS Grid compatibility in Opera

Opera supports CSS Grid from Opera 44 on for desktop, and from Opera Mobile 80 on. Opera 9 to 43 did not support it. Modern Opera tracks the Chromium engine and inherits Chrome's grid behavior.

CSS Grid compatibility in Samsung Internet

CSS Grid works in Samsung Internet from version 6.2 on. Earlier versions did not support the modern grid spec. Samsung Internet is the default browser on most Samsung Galaxy devices, so testing on it covers a large slice of Android traffic.

CSS Grid compatibility in Android Browser

The Android system WebView inherits Chromium support, so CSS Grid works in current Android Browser builds. Older AOSP browser builds before the WebView switched to Chromium did not support CSS Grid.

CSS Grid compatibility in Internet Explorer

IE 10 and 11 partially support CSS Grid using the old -ms- prefixed syntax. Modern features like grid-template-areas with named tokens, gap, repeat(), and the fr unit are not available. Microsoft has retired Internet Explorer, so production sites no longer need to ship the legacy syntax.

Note

Note: CSS Grid behaves slightly differently across browser engines, and the IE 10-11 -ms- legacy syntax can still trip a fallback. Test it on real browsers and OS with TestMu AI. Try TestMu AI free!

What are the key features of CSS Grid?

CSS Grid pairs a container declaration with track-sizing, area-naming, and gap properties that turn raw HTML into a two-dimensional layout.

  • display: grid and display: inline-grid: Turn any element into a grid container. Direct children become grid items automatically.
  • grid-template-columns and grid-template-rows: Define explicit tracks using fixed sizes, percentages, the fr flexible unit, or the repeat() function (for example, repeat(12, 1fr) for a 12-column page grid).
  • grid-template-areas: Name regions of the grid in plain ASCII, then assign items to regions with grid-area. The result reads like an ASCII wireframe right inside the CSS.
  • gap, row-gap, column-gap: Set spacing between tracks without margin hacks. The shorthand gap accepts one value for both axes or two values for row and column gaps.
  • minmax(), auto-fit, and auto-fill: Build responsive layouts that drop or expand columns automatically as the viewport shrinks, with no media queries required.
  • Subgrid: A grid item itself becomes a grid that aligns to the parent's tracks. Supported in Firefox 71+, Safari 16+, and Chrome 117+.

What is the difference between CSS Grid and Flexbox?

Flexbox lays out items along one axis, while CSS Grid lays them out along two axes at once. The two are complementary: Grid handles the page shell, Flexbox handles components inside it.

DimensionCSS GridFlexbox
Layout axisTwo-dimensional, rows and columns at onceOne-dimensional, row or column
Best forPage shells, dashboards, photo galleriesToolbars, nav bars, form rows, card content
Sizing modelTrack-based with fr, minmax(), and auto-fitContent-based with flex-grow, flex-shrink, flex-basis
Source orderItems can be placed anywhere via grid-areaItems follow source order, with the order property as escape hatch
Browser floorChrome 57, Edge 16, Firefox 52, Safari 10.1Chrome 29, Edge 12, Firefox 28, Safari 9
Internet ExplorerPartial in IE 10-11 using -ms- syntaxPartial in IE 10-11 using -ms-flexbox

What are the use cases of CSS Grid?

CSS Grid is the primary layout primitive behind most modern web app shells, dashboards, and content-heavy pages.

  • Page-level layout: Replace the header / sidebar / main / footer holy-grail layout with a single grid container, removing nested floats and flex wrappers.
  • Image and product galleries: Use repeat(auto-fit, minmax(220px, 1fr)) so cards reflow without breakpoints when the viewport changes.
  • Dashboard widgets: Place tiles into named regions so a designer's wireframe maps one-to-one onto grid-template-areas in CSS.
  • Editorial layouts: Let articles, pull-quotes, and inline media span specific tracks for magazine-style spreads that previously needed absolute positioning.
  • Form layouts: Align labels and inputs into two columns at once, avoiding nested flex containers and per-row width tweaks.
...

What are the known issues with CSS Grid?

CSS Grid is stable in modern browsers, but a handful of legacy-support and feature-gap quirks still bite in production.

  • Internet Explorer 10-11 syntax gap: IE only supports the old -ms- prefixed grid spec, which lacks grid-template-areas with named tokens, gap, repeat(), and the fr unit. Most teams now drop IE entirely or fall back to a flex or float layout.
  • Subgrid arrived late: Subgrid shipped in Firefox 71, Safari 16, and Chrome 117. If the page has to render on Chrome 116 or older, subgrid quietly falls back to a regular grid and nested alignments break.
  • Masonry layout is not yet shipped: The CSS Grid Level 3 masonry proposal is still being debated between Chrome and Safari. No browser supports it without a flag, so Pinterest-style layouts still need a JavaScript solution.
  • Edge 12-15 quirks: EdgeHTML used the old IE syntax with unique bugs of its own. In my experience, the cleanest fallback is a feature query around display: grid, since @supports is the only way to skip the legacy path safely on those older Edge builds.
  • DevTools differences: Chrome and Firefox both ship grid inspectors, but the labels and overlay colors differ. QA teams that script visual checks often need separate baselines per browser.
...

Citations

All CSS Grid version numbers and platform notes in this guide come from these primary sources:

Author

Prince Dewani is a Community Contributor at TestMu AI, where he manages content strategies around software testing, QA, and test automation. He is certified in Selenium, Cypress, Playwright, Appium, Automation Testing, and KaneAI. Prince has also presented academic research at the international conference PBCON-01. He further specializes in on-page SEO, bridging marketing with core testing technologies. On LinkedIn, he is followed by 4,300+ QA engineers, developers, DevOps experts, tech leaders, and AI-focused practitioners in the global testing community.

Open in ChatGPT Icon

Open in ChatGPT

Open in Claude Icon

Open in Claude

Open in Perplexity Icon

Open in Perplexity

Open in Grok Icon

Open in Grok

Open in Gemini AI Icon

Open in Gemini AI

Copied to Clipboard!
...

3000+ Browsers. One Platform.

See exactly how your site performs everywhere.

Try it free
...

Write Tests in Plain English with KaneAI

Create, debug, and evolve tests using natural language.

Try for free

Frequently asked questions

Did you find this page helpful?

More Related Hubs

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests