diff options
| author | EuAndreh <eu@euandre.org> | 2026-09-08 21:27:17 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2026-09-08 21:27:17 -0300 |
| commit | 1472988f6220141e509d1e516a69e0d98e16b224 (patch) | |
| tree | 16d6c6b9ae7be5b3b0df29ed3c2c4fc1a7d4cf06 /src/content/en/pastebin/2021/04/03/naive-slugify-js.adoc | |
| parent | style.css: Let the numbers scroll with the code (diff) | |
| download | euandre.org-1472988f6220141e509d1e516a69e0d98e16b224.tar.gz euandre.org-1472988f6220141e509d1e516a69e0d98e16b224.tar.xz | |
style.css: Keep the numbers still by taking them out of the scroll
The numbers left with the code because they were inside the box that
scrolls. Pinning them there was tried first and taken out: nothing
uncovers them, but a scroll draws the two out of step for a frame and
the code is seen crossing them.
The answer is that only the code should scroll. That needs the cell
holding it to be allowed to be narrower than what it holds, and a
table is free to ignore being told so --- Firefox does, and the block
goes back to not containing its own lines. A row laid out as a flex
line is not free to ignore it: min-width there is honoured, the code
gets a box smaller than its content, and the numbers beside it are
not in that box at all. Nothing to pin, so nothing to fall behind.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KxLpaNQThKfMG3ecCJptP9
Diffstat (limited to 'src/content/en/pastebin/2021/04/03/naive-slugify-js.adoc')
0 files changed, 0 insertions, 0 deletions
