CSS Container Style Queries Reach Baseline Support with Drupal Front-End Implications

Core Adoption Still Depends on Firefox ESR Support
CSS Style Queries Reach Baseline Support With Potential Drupal Front-End Impact

Container style queries for CSS custom properties have reached Baseline Newly Available support, completing major-browser availability for a feature that lets CSS respond to custom-property values on a parent container. Web.dev reported that Firefox 151 introduced support for style() queries on @container, while the Web Platform DX feature explorer lists the feature as Baseline Newly Available since 19 May 2026. The change gives Drupal front-end developers a native browser feature for patterns that have often depended on preprocessing or build-time conventions.

In a 29 June 2026 blog post, Mike Herchel, founder and lead developer at DripYard, argues that the feature could reduce Drupal’s reliance on compiled CSS for some use cases. He points to media-query variables as the practical shift: a breakpoint value can be set through a CSS custom property and queried by descendants without Sass, PostCSS, JavaScript, modifier classes, or changed markup. Mike also writes that DripYard themes already use vanilla CSS and may convert some navigation breakpoints to the newer approach.

Drupal’s existing front-end tooling history supports the significance of the claim, but broad adoption is not immediate. A Drupal core issue for Olivero previously described the PostCSS Custom Media plugin as a way to create a reusable navigation breakpoint because CSS custom properties could not be used directly inside media queries. Mike writes that Drupal core still waits for Firefox ESR before adopting style queries broadly, so the immediate news is browser support and early experimentation rather than a Drupal-wide migration.

Disclosure: This content is produced with the assistance of AI.

Disclaimer: The opinions expressed in this story do not necessarily represent that of TheDropTimes. We regularly share third-party blog posts that feature Drupal in good faith. TDT recommends Reader's discretion while consuming such content, as the veracity/authenticity of the story depends on the blogger and their motives. 

Note: The vision of this web portal is to help promote news and stories around the Drupal community and promote and celebrate the people and organizations in the community. We strive to create and distribute our content based on these content policy. If you see any omission/variation on this please reach out to us at #thedroptimes channel on Drupal Slack and we will try to address the issue as best we can.

Related Organizations

Related People

Upcoming Events