Merge pull request #374 from nubenetes/fix/v2-css-content-visibility

fix: remove content-visibility from dense indexes (v2.9.2)
This commit is contained in:
Inaki
2026-06-19 14:32:56 +02:00
committed by GitHub
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