Skip to content

site: footnotes of a table show as previews outside its scroll container, and below it in print - #78

Open
jan-glx wants to merge 2 commits into
sitefrom
jangleixner/table-footnote-previews
Open

jan-glx wants to merge 2 commits into
sitefrom
jangleixner/table-footnote-previews

Conversation

@jan-glx

@jan-glx jan-glx commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Footnote previews inside a table were clipped: the theme wraps every table in a scroll container (overflow: auto, so wide tables scroll sideways), and the hover preview is positioned inside it. Seen on the compatibility matrix in #76 / #77, whose footnotes sit in the outer columns.

Now the previews of a table's footnotes are placed relative to the viewport (position: fixed with CSS anchor positioning), at their reference, so the scroll container no longer clips them: below the reference, or above it if there is no room, and shifted sideways to stay on screen. Still CSS only.

In print, a footnote referenced from a table shows right below that table, as a table note, instead of in the "Notes" at the end of the page. Browsers without anchor positioning show these table notes on screen too, instead of the previews. Footnotes in running text are unchanged. If a page's "Notes" section loses all its footnotes this way, it stays hidden.

Checked with a local build of #76 in Chrome 156 (light and dark theme, 390 px wide, print): the previews in the compatibility matrix show in full above the table, the table note shows only in print, and the 21 previews of storage-format are unchanged.

Before / after

Compatibility matrix from #76, hovering the first footnote reference (Chrome, 1400 px wide).

Before After
Screen before, screen: the preview is cut off at the table's right edge after, screen: the preview shows in full, over the table's edge
Print before, print: the footnote is in the Notes at the end of the page after, print: the footnote is right below the table

…iew would be clipped by the table's scroll container
…utside the table's scroll container; printing shows them below the table
@jan-glx jan-glx changed the title site: footnotes of a table show below it, not as clipped previews site: footnotes of a table show as previews outside its scroll container, and below it in print Nov 6, 2026

This branch was successfully deployed

1 active deployment
preview — 2a122e36 Deployed Nov 6, 2026 by jan-glx via Deploy to Cloudflare Pages #65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant