Skip to content
r.

css-element-queries

marcj/css-element-queries · Public GitHub repository

CSS Element-Queries aka Container Queries. High-speed element dimension/media queries in valid css.

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

css-element-queries live demo screenshot
Captured from the live demo · 2026-10-31

About this project

Author-written excerpt from the project README.

Element Queries is a polyfill adding support for element based media-queries to all new browsers (incl. IE7+). It allows not only to define media-queries based on window-size but also adds 'media-queries' functionality depending on element (any selector supported) size while not causing performance lags due to event based implementation.

It's a proof-of-concept event-based CSS element dimension query with valid CSS selector syntax.

Requirements and intended audience

Element Queries is a polyfill adding support for element based media-queries to all new browsers (incl. IE7+). It allows not only to define media-queries based on window-size but also adds 'media-queries' functionality depending on element (any selector supported) size while not causing performance lags due to event based implementation.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-31. Source: https://github.com/marcj/css-element-queries/blob/master/README.md

Recorded maintenance information

Last recorded source update: 2023-09-28. Saved release: 1.2.2 · 2019-11-22. These dates do not guarantee ongoing maintenance.

Technologies
JavaScript
Licence
MIT. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-16. This does not test every feature.

Browse related categories