Firefox 110 Brings Full CSS Container Queries Support

Firefox 110, released on February 14, 2023, adds full support for CSS container queries, completing adoption across major browsers. Learn about the journey to this milestone and its impact on responsive web design.

Yesterday on February 14, 2023, Firefox 110 was released, marking a significant milestone: full support for CSS container queries. This update completes the adoption of container queries across all major browsers, enabling developers to create more flexible and modular responsive designs. Let’s explore what container queries are, why this matters, and the journey to get here.

What Are CSS Container Queries?

Container queries let you style an element based on the size of its container. Not the browser window — the container itself. With the @container rule, you apply styles based on a container's width, height, or other properties. This means reusable components like cards and widgets can adapt to whatever layout they land in.

.card-container {
  container-type: inline-size;
}

@container (min-width: 300px) {
  .card {
    font-size: 1.2rem;
  }
}

They fit naturally with CSS Grid and Flexbox in component-driven development.

The Road to Full Browser Support

The journey to widespread container query support began with experimental implementations and evolved through collaboration among browser vendors, the W3C CSS Working Group, and the web community.

  • Early Concepts (2015–2019): The idea of container queries emerged from developers’ need for more granular responsive design. Early proposals, like the Element Queries concept, faced challenges due to circularity issues (e.g., elements affecting their own size). The W3C refined the spec to focus on parent containers, avoiding these pitfalls.

  • Chromium’s Lead (2021–2022): Chrome and Edge introduced container queries in version 105 (August 30, 2022), following the CSS Containment Module Level 3 spec. This included container-type and container-name properties for size and style queries. Opera and mobile browsers like Samsung Internet followed, leveraging Chromium’s engine.

  • Safari’s Adoption (2022): Safari 16 added support on September 12, 2022, aligning with macOS Ventura and iOS 16 releases. This brought container queries to Apple’s ecosystem, ensuring compatibility for iOS developers.

  • Firefox’s Final Piece (2023): Firefox lagged slightly due to its independent rendering engine, Gecko. The Mozilla team prioritized stability and performance, implementing container queries in Firefox Nightly builds by late 2022. Firefox 110, released on February 14, 2023, finalized support, completing the set for major browsers.

The process involved extensive testing, with polyfills like cqfill bridging gaps during partial adoption. Community feedback, via platforms like GitHub and X, helped refine edge cases, such as nested containers and dynamic resizing.

Why This Matters

Container queries now work in every major browser. You can drop the fallbacks and polyfills.

That changes how you build components. A component can carry its own styles and adapt to whatever container it lands in. This fits naturally with frameworks like React and Vue, where self-contained components are the goal.

It also removes old workarounds. No more media query tricks or JavaScript resize handlers to guess a component's context. And because container queries rely on CSS containment, the browser handles layout more efficiently than JavaScript can.

Looking Forward

Firefox 110’s support for container queries marks the end of a multi-year effort to standardize a feature that redefines responsive design. Developers can now confidently use @container in production, backed by tools like PostCSS for build-time processing or Tailwind CSS for utility-driven workflows. As browser vendors continue to align on CSS standards, the web moves closer to a future of interoperable, component-first design.

This milestone reflects the collaborative spirit of web standards, driven by years of iteration, testing, and community advocacy. For developers, it’s time to experiment with container queries and build layouts that are more adaptive than ever.