fix: remove content-visibility from dense indexes (v2.9.2)

Removed `content-visibility: auto` on broad <ul>/<ol> selectors and
.v2-tag-section. On the slate (dark) theme it produced black flashes
while scrolling and made link lists below the index mosaic appear
collapsed/broken due to intrinsic-size mismatch causing scrollbar jumps.
The tags page already uses collapsed <details> (native render skipping),
so the optimization was redundant and harmful.

Bumped CSS cache-bust to ?v=2.9.2.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Nubenetes Bot
2026-06-19 14:32:32 +02:00
parent 858f969b93
commit 99c9e2f8f0
2 changed files with 8 additions and 13 deletions

View File

@@ -876,18 +876,13 @@ a {
/* PERFORMANCE OPTIMIZATIONS FOR DENSE INDEXES */
/* ---------------------------------------------------- */
/* Defer rendering of heavy tag sections on the tags index page */
.v2-tag-section {
content-visibility: auto;
contain-intrinsic-size: auto 500px;
}
/* Defer rendering of large resource lists in category pages */
.md-typeset > ul,
.md-typeset > ol {
content-visibility: auto;
contain-intrinsic-size: auto 200px;
}
/* NOTE: `content-visibility: auto` was removed here (v2.9.2). It deferred
painting of off-screen <ul>/<ol> lists, which on the dark (slate) theme
produced black flashes while scrolling and made the link lists below the
index mosaic appear broken/collapsed (intrinsic-size mismatch caused
scrollbar jumps). The tags page already uses collapsed <details>, which
skip rendering natively, so the optimization was both redundant and
harmful. Do NOT reintroduce content-visibility on broad selectors. */
/* Collapsible tag lists on the tags index page */
.v2-tag-section details {

View File

@@ -99,7 +99,7 @@ extra:
extra_css:
- https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap
- static/extra.css
- static/v2_elite.css?v=2.7.0
- static/v2_elite.css?v=2.9.2
extra_javascript:
- static/v2_filter.js