css-container-queries — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited css-container-queries (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Container Queries allow components to adapt their styling based on the size of their containing element rather than the viewport. This enables truly reusable, context-aware components that respond to their available space.
/* Define a containment context */
.card-container {
container-type: inline-size;
container-name: card;
}
/* Query the container's size */
@container card (min-width: 400px) {
.card {
display: grid;
grid-template-columns: 200px 1fr;
gap: 1rem;
}
}
@container card (max-width: 399px) {
.card {
display: flex;
flex-direction: column;
}
}/* cqw = 1% of container width */
/* cqh = 1% of container height */
/* cqi = 1% of container inline size */
/* cqb = 1% of container block size */
/* cqmin = min(cqi, cqb) */
/* cqmax = max(cqi, cqb) */
.card-title {
font-size: clamp(1rem, 3cqi, 2rem);
}
.card-image {
height: 40cqb;
}/* Query custom property values */
@container style(--theme: dark) {
.card {
background: #1a1a2e;
color: #eee;
}
}
@container style(--variant: compact) {
.card {
padding: 0.5rem;
}
}.sidebar {
container-type: inline-size;
container-name: sidebar;
}
.sidebar .widget {
container-type: inline-size;
container-name: widget;
}
@container sidebar (max-width: 300px) {
.sidebar-nav { flex-direction: column; }
}
@container widget (min-width: 200px) {
.widget-content { display: grid; grid-template-columns: 1fr 1fr; }
}<!-- Tailwind v4 has native container query support -->
<div class="@container">
<div class="flex flex-col @sm:flex-row @md:grid @md:grid-cols-3">
<p class="text-sm @lg:text-base">Responsive to container</p>
</div>
</div>container-name for clarity in nested contextscqi, cqw) for fluid typography and spacingcontainer-type: size when only inline-size is needed (causes unnecessary layout containment)container-type creates a new stacking context~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.