# css-element-queries

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

Canonical page: https://www.reposhelf.co.uk/projects/github/marcj/css-element-queries.html

- Project ID: marcj/css-element-queries
- Source: GitHub
- Original project: https://github.com/marcj/css-element-queries
- Description attribution: project author metadata
- Categories: Design
- Technologies: Not recorded
- Licence: MIT
- Repository availability checked: 2026-11-04T07:43:11.506Z
- Demo page loaded: 2026-11-16T13:50:55.685Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> 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.

- no performance issues since it listens only on size changes of elements that have element query rules defined through css. Other element query polifills only listen on window.onresize which causes performance issues and…
- no interval/timeout detection. Truly event-based through integrated ResizeSensor class.
- automatically discovers new DOM elements. No need to call javascript manually.
- no CSS modifications. Valid CSS Syntax
- all CSS selectors available. Uses regular attribute selector. No need to write rules in HTML/JS.

## Author-documented requirements and 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.

Source: https://github.com/marcj/css-element-queries/blob/master/README.md

Extraction checked: 2026-10-31T02:39:56.202Z

Last recorded source update: 2023-09-28T02:03:39.000Z

Saved release: 1.2.2 — 2019-11-22T16:15:04.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=marcj%2Fcss-element-queries). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
