Answer stability round 1: 0 🔴, 1 🟡 (0 misread); the order test requires both base rules, a chip's dot goes where the native box shows

This commit is contained in:
2026-10-31 12:25:23 +01:00
parent d0e1de96b8
commit 2170ca728b
2 changed files with 8 additions and 6 deletions
+5 -3
View File
@@ -478,13 +478,15 @@ span.nav-self { cursor: default; } /* static / non-clickable */
.chip:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }
}
/* Without :has() every branch is open and every theme rule is inert: neither control does anything.
The filter inputs stay visible, since the native control is then the only sign of a choice or of
focus. After the base rules, since @supports adds no specificity. */
/* Without :has() every nav branch stays open and no theme rule applies, so the disclosure toggles and
the theme switch are hidden. The filter inputs are shown instead: the native control is then the
only sign of a choice or of focus, and the dot goes, since it would stay grey beside a ticked box. This block must come
after the base rules, since @supports adds no specificity. */
@supports not selector(:has(a)) {
.nav-disc { visibility: hidden; } /* keeps its width, so the labels stay aligned */
.theme-switch { display: none; }
.segmented input, .chip input { position: static; opacity: 1; margin: 0; }
.chip .chip-dot { display: none; }
}
/* date range */