From 61e0a70a6369b43aaf4f7e8ba3556a9ec11ce715 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 22 Oct 2026 07:08:55 +0000 Subject: [PATCH 1/8] test(web): rendered markdown keeps its scroll across file tab switches Regression test for #22300. Fails on main: AGENTS.md scrolled to 1800px returns at 0px after switching to README.md and back. Co-Authored-By: Claude Opus 5.5 --- .../files/FilePreviewPanel.browser.test.tsx | 93 +++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 apps/web/src/components/files/FilePreviewPanel.browser.test.tsx diff --git a/apps/web/src/components/files/FilePreviewPanel.browser.test.tsx b/apps/web/src/components/files/FilePreviewPanel.browser.test.tsx new file mode 100644 index 000000000000..56c113b0731d --- /dev/null +++ b/apps/web/src/components/files/FilePreviewPanel.browser.test.tsx @@ -0,0 +1,93 @@ +import "~/index.css"; + +import { render } from "../../../test/render"; +import { EnvironmentId, ThreadId, type ScopedThreadRef } from "@t3tools/contracts"; +import { describe, expect, it, vi } from "vite-plus/test"; + +const { readFile } = vi.hoisted(() => ({ readFile: vi.fn() })); +vi.mock(import("./projectFilesQueryState"), async (original) => ({ + ...(await original()), + useProjectFileQuery: readFile, +})); +vi.mock(import("~/state/filesystem"), async (original) => ({ + ...(await original()), + useFilesystemReadAccess: () => ({ canReadFiles: true }) as never, +})); +vi.mock(import("~/state/session"), async (original) => ({ + ...(await original()), + useEnvironmentScope: () => false, +})); + +import FilePreviewPanel from "./FilePreviewPanel"; + +const environmentId = EnvironmentId.make("rendered-markdown-scroll"); +const cwd = "/workspace"; +const files: Record = { + "AGENTS.md": Array.from({ length: 200 }, (_, i) => `Agents paragraph ${i}.`).join("\n\n"), + "README.md": Array.from({ length: 200 }, (_, i) => `Readme paragraph ${i}.`).join("\n\n"), +}; + +function panel(relativePath: string) { + return ( +
+ {}} + onNavigateFolder={() => {}} + folderTrail={undefined} + onPendingChange={() => {}} + selectedFilePending={false} + workspaceMutationId={null} + /> +
+ ); +} + +function viewport(container: HTMLElement) { + const element = Array.from( + container.querySelectorAll('[data-slot="scroll-area-viewport"]'), + ).find((candidate) => candidate.textContent?.includes("paragraph 0.")); + if (!element) throw new Error("rendered markdown viewport is missing"); + return element; +} + +describe("rendered markdown file preview", () => { + // regression: #22300 switching file tabs reset the rendered markdown scroll to the top + it("keeps each file's scroll position across file tab switches", async () => { + localStorage.setItem("t3code.renderMarkdown", "true"); + localStorage.setItem("t3code.fileExplorerOpen", "false"); + readFile.mockImplementation((_environmentId, _cwd, relativePath: string) => ({ + data: { contents: files[relativePath], truncated: false }, + error: null, + readError: null, + isNotFile: false, + refresh: () => {}, + })); + + await using screen = await render(panel("AGENTS.md")); + await expect.element(screen.getByText("Agents paragraph 199.")).toBeInTheDocument(); + const agents = viewport(screen.container); + agents.scrollTop = 1800; + agents.dispatchEvent(new Event("scroll")); + + await screen.rerender(panel("README.md")); + await expect.element(screen.getByText("Readme paragraph 0.")).toBeInTheDocument(); + expect(viewport(screen.container).scrollTop).toBe(0); + + await screen.rerender(panel("AGENTS.md")); + await expect.element(screen.getByText("Agents paragraph 0.")).toBeInTheDocument(); + await expect.poll(() => viewport(screen.container).scrollTop).toBe(1800); + }); +}); From a93fcbd567eba2c5cd92263e7721a85bc8ade3cb Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 22 Oct 2026 07:41:45 +0000 Subject: [PATCH 2/8] fix(web): rendered markdown keeps its scroll across file tab switches Each file's rendered Markdown offset is stored in a small LRU keyed by environment, workspace, and path, saved on scroll and once more on unmount so a same-frame scroll is not lost, and reapplied while late content settles until it lands or the user scrolls. Fixes #22300 Co-Authored-By: Claude Opus 5.5 --- .../src/components/files/FilePreviewPanel.tsx | 56 ++++++++++++++++++- 1 file changed, 53 insertions(+), 3 deletions(-) diff --git a/apps/web/src/components/files/FilePreviewPanel.tsx b/apps/web/src/components/files/FilePreviewPanel.tsx index 414a5e6e4138..ac63fecf419d 100644 --- a/apps/web/src/components/files/FilePreviewPanel.tsx +++ b/apps/web/src/components/files/FilePreviewPanel.tsx @@ -41,7 +41,7 @@ import { mediaFileReference } from "@t3tools/client-runtime/media-reference"; import { FolderTree, Globe2, WrapTextIcon } from "lucide-react"; import { Code2, Eye, Table2 } from "lucide"; import * as Schema from "effect/Schema"; -import { useEffect, useRef, useState } from "react"; +import { useEffect, useLayoutEffect, useRef, useState } from "react"; import { isBrowserPreviewFile, openFileInPreview } from "~/browser/openFileInPreview"; import { useAssetUrlRefresh, useAssetUrlState } from "~/assets/assetUrls"; @@ -55,6 +55,8 @@ import { useTheme } from "~/hooks/useTheme"; import { getLocalStorageItem, setLocalStorageItem, useLocalStorage } from "~/hooks/useLocalStorage"; import { useWorkspaceMutationRefresh } from "~/hooks/useWorkspaceMutationRefresh"; import { resolveDiffThemeName } from "~/lib/diffRendering"; +import { LRUCache } from "~/lib/lruCache"; +import { observeResize } from "~/lib/observeResize"; import { PREFERRED_HIGHLIGHTER } from "~/lib/syntaxHighlighting"; import { cn } from "~/lib/utils"; import type { ChatFileAttachment } from "~/types"; @@ -901,6 +903,11 @@ function EditableFileSurface({ ); } +// The rendered surface remounts on every file tab or source toggle, so its offset lives +// outside React and is written from the scroll listener without re-rendering. +const renderedMarkdownScrollTops = new LRUCache(200, 200); +const USER_SCROLL_EVENTS = ["wheel", "touchstart", "pointerdown", "keydown"] as const; + function RenderedMarkdownSurface({ environmentId, cwd, @@ -929,9 +936,52 @@ function RenderedMarkdownSurface({ relativePath, onPendingChange, }); + const scrollAreaRef = useRef(null); + + useLayoutEffect(() => { + const root = scrollAreaRef.current; + const viewport = root?.querySelector('[data-slot="scroll-area-viewport"]'); + if (!root || !viewport) return; + const key = JSON.stringify([environmentId, cwd, relativePath]); + const target = renderedMarkdownScrollTops.get(key) ?? 0; + // Images, math, and code blocks can settle after mount; keep reapplying the offset + // while content grows so a clamped early scrollTop does not overwrite the saved one. + let restoring = true; + let unobserve = () => {}; + // Listen on the root so dragging the scrollbar, a sibling of the viewport, also + // hands control back to the user. + const stopRestoring = () => { + restoring = false; + unobserve(); + for (const type of USER_SCROLL_EVENTS) root.removeEventListener(type, stopRestoring); + }; + const save = () => { + if (!restoring) renderedMarkdownScrollTops.set(key, viewport.scrollTop, 1); + }; + viewport.scrollTop = target; + if (Math.abs(viewport.scrollTop - target) < 1) { + stopRestoring(); + } else { + unobserve = observeResize(Array.from(viewport.children), () => { + viewport.scrollTop = target; + if (Math.abs(viewport.scrollTop - target) < 1) stopRestoring(); + }); + for (const type of USER_SCROLL_EVENTS) { + root.addEventListener(type, stopRestoring, { passive: true }); + } + } + viewport.addEventListener("scroll", save, { passive: true }); + return () => { + // A scroll in the same frame as the tab switch has not dispatched its event yet. + // The surface is keyed by file identity, so this runs before its DOM is detached. + if (viewport.isConnected) save(); + stopRestoring(); + viewport.removeEventListener("scroll", save); + }; + }, [environmentId, cwd, relativePath]); return ( - + Date: Thu, 22 Oct 2026 07:46:56 +0000 Subject: [PATCH 3/8] test(web): follow browser assertion wait convention --- apps/web/src/components/files/FilePreviewPanel.browser.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/files/FilePreviewPanel.browser.test.tsx b/apps/web/src/components/files/FilePreviewPanel.browser.test.tsx index 56c113b0731d..b1d20ada710e 100644 --- a/apps/web/src/components/files/FilePreviewPanel.browser.test.tsx +++ b/apps/web/src/components/files/FilePreviewPanel.browser.test.tsx @@ -88,6 +88,6 @@ describe("rendered markdown file preview", () => { await screen.rerender(panel("AGENTS.md")); await expect.element(screen.getByText("Agents paragraph 0.")).toBeInTheDocument(); - await expect.poll(() => viewport(screen.container).scrollTop).toBe(1800); + await vi.waitFor(() => expect(viewport(screen.container).scrollTop).toBe(1800)); }); }); From 9e8c5faf4250046a7d64c2e76a8f2a741e211e97 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 22 Oct 2026 08:23:57 +0000 Subject: [PATCH 4/8] test(web): add deterministic markdown scroll fixtures --- scripts/fixtures/markdown-scroll/alpha.md | 483 +++++++++++++ scripts/fixtures/markdown-scroll/beta.md | 483 +++++++++++++ scripts/fixtures/markdown-scroll/delayed.md | 17 + scripts/fixtures/markdown-scroll/height.svg | 1 + scripts/fixtures/markdown-scroll/links.md | 3 + scripts/fixtures/markdown-scroll/tasks.md | 723 ++++++++++++++++++++ scripts/seed-markdown-scroll-fixtures.mjs | 28 + 7 files changed, 1738 insertions(+) create mode 100644 scripts/fixtures/markdown-scroll/alpha.md create mode 100644 scripts/fixtures/markdown-scroll/beta.md create mode 100644 scripts/fixtures/markdown-scroll/delayed.md create mode 100644 scripts/fixtures/markdown-scroll/height.svg create mode 100644 scripts/fixtures/markdown-scroll/links.md create mode 100644 scripts/fixtures/markdown-scroll/tasks.md create mode 100644 scripts/seed-markdown-scroll-fixtures.mjs diff --git a/scripts/fixtures/markdown-scroll/alpha.md b/scripts/fixtures/markdown-scroll/alpha.md new file mode 100644 index 000000000000..d4438c3deab1 --- /dev/null +++ b/scripts/fixtures/markdown-scroll/alpha.md @@ -0,0 +1,483 @@ +# Markdown scroll fixture alpha + +- [ ] Editable checkpoint + +## Section 001 + +ALPHA paragraph 001. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 002 + +ALPHA paragraph 002. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 003 + +ALPHA paragraph 003. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 004 + +ALPHA paragraph 004. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 005 + +ALPHA paragraph 005. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 006 + +ALPHA paragraph 006. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 007 + +ALPHA paragraph 007. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 008 + +ALPHA paragraph 008. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 009 + +ALPHA paragraph 009. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 010 + +ALPHA paragraph 010. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 011 + +ALPHA paragraph 011. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 012 + +ALPHA paragraph 012. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 013 + +ALPHA paragraph 013. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 014 + +ALPHA paragraph 014. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 015 + +ALPHA paragraph 015. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 016 + +ALPHA paragraph 016. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 017 + +ALPHA paragraph 017. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 018 + +ALPHA paragraph 018. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 019 + +ALPHA paragraph 019. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 020 + +ALPHA paragraph 020. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 021 + +ALPHA paragraph 021. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 022 + +ALPHA paragraph 022. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 023 + +ALPHA paragraph 023. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 024 + +ALPHA paragraph 024. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 025 + +ALPHA paragraph 025. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 026 + +ALPHA paragraph 026. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 027 + +ALPHA paragraph 027. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 028 + +ALPHA paragraph 028. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 029 + +ALPHA paragraph 029. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 030 + +ALPHA paragraph 030. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 031 + +ALPHA paragraph 031. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 032 + +ALPHA paragraph 032. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 033 + +ALPHA paragraph 033. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 034 + +ALPHA paragraph 034. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 035 + +ALPHA paragraph 035. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 036 + +ALPHA paragraph 036. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 037 + +ALPHA paragraph 037. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 038 + +ALPHA paragraph 038. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 039 + +ALPHA paragraph 039. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 040 + +ALPHA paragraph 040. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 041 + +ALPHA paragraph 041. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 042 + +ALPHA paragraph 042. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 043 + +ALPHA paragraph 043. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 044 + +ALPHA paragraph 044. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 045 + +ALPHA paragraph 045. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 046 + +ALPHA paragraph 046. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 047 + +ALPHA paragraph 047. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 048 + +ALPHA paragraph 048. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 049 + +ALPHA paragraph 049. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 050 + +ALPHA paragraph 050. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 051 + +ALPHA paragraph 051. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 052 + +ALPHA paragraph 052. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 053 + +ALPHA paragraph 053. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 054 + +ALPHA paragraph 054. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 055 + +ALPHA paragraph 055. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 056 + +ALPHA paragraph 056. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 057 + +ALPHA paragraph 057. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 058 + +ALPHA paragraph 058. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 059 + +ALPHA paragraph 059. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 060 + +ALPHA paragraph 060. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 061 + +ALPHA paragraph 061. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 062 + +ALPHA paragraph 062. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 063 + +ALPHA paragraph 063. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 064 + +ALPHA paragraph 064. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 065 + +ALPHA paragraph 065. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 066 + +ALPHA paragraph 066. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 067 + +ALPHA paragraph 067. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 068 + +ALPHA paragraph 068. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 069 + +ALPHA paragraph 069. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 070 + +ALPHA paragraph 070. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 071 + +ALPHA paragraph 071. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 072 + +ALPHA paragraph 072. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 073 + +ALPHA paragraph 073. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 074 + +ALPHA paragraph 074. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 075 + +ALPHA paragraph 075. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 076 + +ALPHA paragraph 076. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 077 + +ALPHA paragraph 077. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 078 + +ALPHA paragraph 078. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 079 + +ALPHA paragraph 079. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 080 + +ALPHA paragraph 080. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 081 + +ALPHA paragraph 081. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 082 + +ALPHA paragraph 082. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 083 + +ALPHA paragraph 083. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 084 + +ALPHA paragraph 084. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 085 + +ALPHA paragraph 085. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 086 + +ALPHA paragraph 086. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 087 + +ALPHA paragraph 087. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 088 + +ALPHA paragraph 088. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 089 + +ALPHA paragraph 089. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 090 + +ALPHA paragraph 090. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 091 + +ALPHA paragraph 091. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 092 + +ALPHA paragraph 092. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 093 + +ALPHA paragraph 093. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 094 + +ALPHA paragraph 094. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 095 + +ALPHA paragraph 095. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 096 + +ALPHA paragraph 096. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 097 + +ALPHA paragraph 097. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 098 + +ALPHA paragraph 098. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 099 + +ALPHA paragraph 099. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 100 + +ALPHA paragraph 100. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 101 + +ALPHA paragraph 101. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 102 + +ALPHA paragraph 102. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 103 + +ALPHA paragraph 103. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 104 + +ALPHA paragraph 104. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 105 + +ALPHA paragraph 105. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 106 + +ALPHA paragraph 106. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 107 + +ALPHA paragraph 107. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 108 + +ALPHA paragraph 108. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 109 + +ALPHA paragraph 109. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 110 + +ALPHA paragraph 110. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 111 + +ALPHA paragraph 111. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 112 + +ALPHA paragraph 112. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 113 + +ALPHA paragraph 113. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 114 + +ALPHA paragraph 114. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 115 + +ALPHA paragraph 115. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 116 + +ALPHA paragraph 116. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 117 + +ALPHA paragraph 117. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 118 + +ALPHA paragraph 118. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 119 + +ALPHA paragraph 119. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 120 + +ALPHA paragraph 120. Deterministic text for scroll restoration, wrapping, and independent file positions. diff --git a/scripts/fixtures/markdown-scroll/beta.md b/scripts/fixtures/markdown-scroll/beta.md new file mode 100644 index 000000000000..47352809bb6f --- /dev/null +++ b/scripts/fixtures/markdown-scroll/beta.md @@ -0,0 +1,483 @@ +# Markdown scroll fixture beta + +- [ ] Editable checkpoint + +## Section 001 + +BETA paragraph 001. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 002 + +BETA paragraph 002. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 003 + +BETA paragraph 003. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 004 + +BETA paragraph 004. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 005 + +BETA paragraph 005. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 006 + +BETA paragraph 006. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 007 + +BETA paragraph 007. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 008 + +BETA paragraph 008. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 009 + +BETA paragraph 009. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 010 + +BETA paragraph 010. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 011 + +BETA paragraph 011. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 012 + +BETA paragraph 012. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 013 + +BETA paragraph 013. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 014 + +BETA paragraph 014. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 015 + +BETA paragraph 015. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 016 + +BETA paragraph 016. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 017 + +BETA paragraph 017. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 018 + +BETA paragraph 018. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 019 + +BETA paragraph 019. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 020 + +BETA paragraph 020. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 021 + +BETA paragraph 021. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 022 + +BETA paragraph 022. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 023 + +BETA paragraph 023. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 024 + +BETA paragraph 024. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 025 + +BETA paragraph 025. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 026 + +BETA paragraph 026. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 027 + +BETA paragraph 027. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 028 + +BETA paragraph 028. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 029 + +BETA paragraph 029. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 030 + +BETA paragraph 030. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 031 + +BETA paragraph 031. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 032 + +BETA paragraph 032. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 033 + +BETA paragraph 033. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 034 + +BETA paragraph 034. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 035 + +BETA paragraph 035. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 036 + +BETA paragraph 036. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 037 + +BETA paragraph 037. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 038 + +BETA paragraph 038. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 039 + +BETA paragraph 039. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 040 + +BETA paragraph 040. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 041 + +BETA paragraph 041. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 042 + +BETA paragraph 042. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 043 + +BETA paragraph 043. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 044 + +BETA paragraph 044. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 045 + +BETA paragraph 045. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 046 + +BETA paragraph 046. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 047 + +BETA paragraph 047. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 048 + +BETA paragraph 048. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 049 + +BETA paragraph 049. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 050 + +BETA paragraph 050. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 051 + +BETA paragraph 051. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 052 + +BETA paragraph 052. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 053 + +BETA paragraph 053. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 054 + +BETA paragraph 054. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 055 + +BETA paragraph 055. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 056 + +BETA paragraph 056. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 057 + +BETA paragraph 057. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 058 + +BETA paragraph 058. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 059 + +BETA paragraph 059. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 060 + +BETA paragraph 060. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 061 + +BETA paragraph 061. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 062 + +BETA paragraph 062. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 063 + +BETA paragraph 063. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 064 + +BETA paragraph 064. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 065 + +BETA paragraph 065. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 066 + +BETA paragraph 066. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 067 + +BETA paragraph 067. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 068 + +BETA paragraph 068. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 069 + +BETA paragraph 069. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 070 + +BETA paragraph 070. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 071 + +BETA paragraph 071. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 072 + +BETA paragraph 072. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 073 + +BETA paragraph 073. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 074 + +BETA paragraph 074. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 075 + +BETA paragraph 075. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 076 + +BETA paragraph 076. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 077 + +BETA paragraph 077. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 078 + +BETA paragraph 078. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 079 + +BETA paragraph 079. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 080 + +BETA paragraph 080. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 081 + +BETA paragraph 081. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 082 + +BETA paragraph 082. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 083 + +BETA paragraph 083. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 084 + +BETA paragraph 084. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 085 + +BETA paragraph 085. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 086 + +BETA paragraph 086. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 087 + +BETA paragraph 087. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 088 + +BETA paragraph 088. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 089 + +BETA paragraph 089. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 090 + +BETA paragraph 090. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 091 + +BETA paragraph 091. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 092 + +BETA paragraph 092. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 093 + +BETA paragraph 093. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 094 + +BETA paragraph 094. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 095 + +BETA paragraph 095. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 096 + +BETA paragraph 096. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 097 + +BETA paragraph 097. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 098 + +BETA paragraph 098. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 099 + +BETA paragraph 099. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 100 + +BETA paragraph 100. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 101 + +BETA paragraph 101. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 102 + +BETA paragraph 102. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 103 + +BETA paragraph 103. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 104 + +BETA paragraph 104. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 105 + +BETA paragraph 105. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 106 + +BETA paragraph 106. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 107 + +BETA paragraph 107. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 108 + +BETA paragraph 108. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 109 + +BETA paragraph 109. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 110 + +BETA paragraph 110. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 111 + +BETA paragraph 111. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 112 + +BETA paragraph 112. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 113 + +BETA paragraph 113. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 114 + +BETA paragraph 114. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 115 + +BETA paragraph 115. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 116 + +BETA paragraph 116. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 117 + +BETA paragraph 117. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 118 + +BETA paragraph 118. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 119 + +BETA paragraph 119. Deterministic text for scroll restoration, wrapping, and independent file positions. + +## Section 120 + +BETA paragraph 120. Deterministic text for scroll restoration, wrapping, and independent file positions. diff --git a/scripts/fixtures/markdown-scroll/delayed.md b/scripts/fixtures/markdown-scroll/delayed.md new file mode 100644 index 000000000000..823a02a3dcd0 --- /dev/null +++ b/scripts/fixtures/markdown-scroll/delayed.md @@ -0,0 +1,17 @@ +# Markdown scroll fixture delayed + +![Height fixture 0](./height.svg) + +![Height fixture 1](./height.svg) + +![Height fixture 2](./height.svg) + +![Height fixture 3](./height.svg) + +![Height fixture 4](./height.svg) + +![Height fixture 5](./height.svg) + +## Tail + +Actual authenticated local images control this document height. diff --git a/scripts/fixtures/markdown-scroll/height.svg b/scripts/fixtures/markdown-scroll/height.svg new file mode 100644 index 000000000000..ce2ba05d0434 --- /dev/null +++ b/scripts/fixtures/markdown-scroll/height.svg @@ -0,0 +1 @@ +Height marker 0Height marker 100Height marker 200Height marker 300Height marker 400Height marker 500Height marker 600Height marker 700Height marker 800Height marker 900 diff --git a/scripts/fixtures/markdown-scroll/links.md b/scripts/fixtures/markdown-scroll/links.md new file mode 100644 index 000000000000..70b38bc1b150 --- /dev/null +++ b/scripts/fixtures/markdown-scroll/links.md @@ -0,0 +1,3 @@ +# Markdown scroll fixture links + +[Open beta fixture](./beta.md) diff --git a/scripts/fixtures/markdown-scroll/tasks.md b/scripts/fixtures/markdown-scroll/tasks.md new file mode 100644 index 000000000000..1486fbfbdca4 --- /dev/null +++ b/scripts/fixtures/markdown-scroll/tasks.md @@ -0,0 +1,723 @@ +# Markdown scroll fixture tasks + +- [ ] Editable checkpoint + +## Section 001 + +ALPHA paragraph 001. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 002 + +ALPHA paragraph 002. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 003 + +ALPHA paragraph 003. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 004 + +ALPHA paragraph 004. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 005 + +ALPHA paragraph 005. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 006 + +ALPHA paragraph 006. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 007 + +ALPHA paragraph 007. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 008 + +ALPHA paragraph 008. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 009 + +ALPHA paragraph 009. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 010 + +ALPHA paragraph 010. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 011 + +ALPHA paragraph 011. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 012 + +ALPHA paragraph 012. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 013 + +ALPHA paragraph 013. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 014 + +ALPHA paragraph 014. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 015 + +ALPHA paragraph 015. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 016 + +ALPHA paragraph 016. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 017 + +ALPHA paragraph 017. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 018 + +ALPHA paragraph 018. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 019 + +ALPHA paragraph 019. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 020 + +ALPHA paragraph 020. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 021 + +ALPHA paragraph 021. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 022 + +ALPHA paragraph 022. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 023 + +ALPHA paragraph 023. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 024 + +ALPHA paragraph 024. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 025 + +ALPHA paragraph 025. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 026 + +ALPHA paragraph 026. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 027 + +ALPHA paragraph 027. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 028 + +ALPHA paragraph 028. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 029 + +ALPHA paragraph 029. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 030 + +ALPHA paragraph 030. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 031 + +ALPHA paragraph 031. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 032 + +ALPHA paragraph 032. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 033 + +ALPHA paragraph 033. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 034 + +ALPHA paragraph 034. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 035 + +ALPHA paragraph 035. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 036 + +ALPHA paragraph 036. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 037 + +ALPHA paragraph 037. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 038 + +ALPHA paragraph 038. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 039 + +ALPHA paragraph 039. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 040 + +ALPHA paragraph 040. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 041 + +ALPHA paragraph 041. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 042 + +ALPHA paragraph 042. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 043 + +ALPHA paragraph 043. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 044 + +ALPHA paragraph 044. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 045 + +ALPHA paragraph 045. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 046 + +ALPHA paragraph 046. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 047 + +ALPHA paragraph 047. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 048 + +ALPHA paragraph 048. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 049 + +ALPHA paragraph 049. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 050 + +ALPHA paragraph 050. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 051 + +ALPHA paragraph 051. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 052 + +ALPHA paragraph 052. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 053 + +ALPHA paragraph 053. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 054 + +ALPHA paragraph 054. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 055 + +ALPHA paragraph 055. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 056 + +ALPHA paragraph 056. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 057 + +ALPHA paragraph 057. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 058 + +ALPHA paragraph 058. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 059 + +ALPHA paragraph 059. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 060 + +ALPHA paragraph 060. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 061 + +ALPHA paragraph 061. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 062 + +ALPHA paragraph 062. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 063 + +ALPHA paragraph 063. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 064 + +ALPHA paragraph 064. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 065 + +ALPHA paragraph 065. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 066 + +ALPHA paragraph 066. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 067 + +ALPHA paragraph 067. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 068 + +ALPHA paragraph 068. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 069 + +ALPHA paragraph 069. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 070 + +ALPHA paragraph 070. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 071 + +ALPHA paragraph 071. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 072 + +ALPHA paragraph 072. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 073 + +ALPHA paragraph 073. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 074 + +ALPHA paragraph 074. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 075 + +ALPHA paragraph 075. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 076 + +ALPHA paragraph 076. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 077 + +ALPHA paragraph 077. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 078 + +ALPHA paragraph 078. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 079 + +ALPHA paragraph 079. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 080 + +ALPHA paragraph 080. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 081 + +ALPHA paragraph 081. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 082 + +ALPHA paragraph 082. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 083 + +ALPHA paragraph 083. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 084 + +ALPHA paragraph 084. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 085 + +ALPHA paragraph 085. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 086 + +ALPHA paragraph 086. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 087 + +ALPHA paragraph 087. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 088 + +ALPHA paragraph 088. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 089 + +ALPHA paragraph 089. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 090 + +ALPHA paragraph 090. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 091 + +ALPHA paragraph 091. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 092 + +ALPHA paragraph 092. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 093 + +ALPHA paragraph 093. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 094 + +ALPHA paragraph 094. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 095 + +ALPHA paragraph 095. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 096 + +ALPHA paragraph 096. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 097 + +ALPHA paragraph 097. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 098 + +ALPHA paragraph 098. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 099 + +ALPHA paragraph 099. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 100 + +ALPHA paragraph 100. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 101 + +ALPHA paragraph 101. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 102 + +ALPHA paragraph 102. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 103 + +ALPHA paragraph 103. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 104 + +ALPHA paragraph 104. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 105 + +ALPHA paragraph 105. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 106 + +ALPHA paragraph 106. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 107 + +ALPHA paragraph 107. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 108 + +ALPHA paragraph 108. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 109 + +ALPHA paragraph 109. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 110 + +ALPHA paragraph 110. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 111 + +ALPHA paragraph 111. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 112 + +ALPHA paragraph 112. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 113 + +ALPHA paragraph 113. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 114 + +ALPHA paragraph 114. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 115 + +ALPHA paragraph 115. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 116 + +ALPHA paragraph 116. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 117 + +ALPHA paragraph 117. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 118 + +ALPHA paragraph 118. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 119 + +ALPHA paragraph 119. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task + +## Section 120 + +ALPHA paragraph 120. Deterministic text for scroll restoration, wrapping, and independent file positions. + +- [ ] Section task diff --git a/scripts/seed-markdown-scroll-fixtures.mjs b/scripts/seed-markdown-scroll-fixtures.mjs new file mode 100644 index 000000000000..41853cdee409 --- /dev/null +++ b/scripts/seed-markdown-scroll-fixtures.mjs @@ -0,0 +1,28 @@ +import { copyFileSync, mkdirSync, readFileSync, writeFileSync } from "node:fs"; +import { fileURLToPath } from "node:url"; +import { resolve } from "node:path"; + +const root = fileURLToPath(new URL("../", import.meta.url)); +const targets = process.argv.slice(2); +if (!targets.length) { + throw new Error("Usage: node scripts/seed-markdown-scroll-fixtures.mjs [...]"); +} +for (const target of targets) { + const destination = resolve(target, ".t3/markdown-scroll-fixtures"); + mkdirSync(destination, { recursive: true }); + for (const name of ["alpha.md", "beta.md", "delayed.md", "height.svg", "tasks.md", "links.md"]) { + copyFileSync( + resolve(root, `scripts/fixtures/markdown-scroll/${name}`), + resolve(destination, name), + ); + } + const secondary = resolve(target, "apps/server/.t3/markdown-scroll-fixtures"); + mkdirSync(secondary, { recursive: true }); + writeFileSync( + resolve(secondary, "alpha.md"), + readFileSync(resolve(destination, "alpha.md"), "utf8").replace( + "fixture alpha", + "fixture workspace B alpha", + ), + ); +} From c133071f3341e7aee936439d726af4547c5a4054 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 22 Oct 2026 08:37:08 +0000 Subject: [PATCH 5/8] test(web): use standard Node imports in scroll fixture seed --- scripts/seed-markdown-scroll-fixtures.mjs | 28 +++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/scripts/seed-markdown-scroll-fixtures.mjs b/scripts/seed-markdown-scroll-fixtures.mjs index 41853cdee409..fa9549a181be 100644 --- a/scripts/seed-markdown-scroll-fixtures.mjs +++ b/scripts/seed-markdown-scroll-fixtures.mjs @@ -1,26 +1,26 @@ -import { copyFileSync, mkdirSync, readFileSync, writeFileSync } from "node:fs"; -import { fileURLToPath } from "node:url"; -import { resolve } from "node:path"; +import * as NodeFS from "node:fs"; +import * as NodeURL from "node:url"; +import * as NodePath from "node:path"; -const root = fileURLToPath(new URL("../", import.meta.url)); +const root = NodeURL.fileURLToPath(new URL("../", import.meta.url)); const targets = process.argv.slice(2); if (!targets.length) { throw new Error("Usage: node scripts/seed-markdown-scroll-fixtures.mjs [...]"); } for (const target of targets) { - const destination = resolve(target, ".t3/markdown-scroll-fixtures"); - mkdirSync(destination, { recursive: true }); + const destination = NodePath.resolve(target, ".t3/markdown-scroll-fixtures"); + NodeFS.mkdirSync(destination, { recursive: true }); for (const name of ["alpha.md", "beta.md", "delayed.md", "height.svg", "tasks.md", "links.md"]) { - copyFileSync( - resolve(root, `scripts/fixtures/markdown-scroll/${name}`), - resolve(destination, name), + NodeFS.copyFileSync( + NodePath.resolve(root, `scripts/fixtures/markdown-scroll/${name}`), + NodePath.resolve(destination, name), ); } - const secondary = resolve(target, "apps/server/.t3/markdown-scroll-fixtures"); - mkdirSync(secondary, { recursive: true }); - writeFileSync( - resolve(secondary, "alpha.md"), - readFileSync(resolve(destination, "alpha.md"), "utf8").replace( + const secondary = NodePath.resolve(target, "apps/server/.t3/markdown-scroll-fixtures"); + NodeFS.mkdirSync(secondary, { recursive: true }); + NodeFS.writeFileSync( + NodePath.resolve(secondary, "alpha.md"), + NodeFS.readFileSync(NodePath.resolve(destination, "alpha.md"), "utf8").replace( "fixture alpha", "fixture workspace B alpha", ), From d2f01ac39f15b12200118db802ef7c0db35c6e4b Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 22 Oct 2026 09:17:31 +0000 Subject: [PATCH 6/8] chore: register markdown scroll fixture seed script as a knip entry The seed script is run directly with node, so knip's unused-files check flagged it and failed the Lint job. Co-Authored-By: Claude Opus 5.5 --- knip.jsonc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/knip.jsonc b/knip.jsonc index 7fbfe3825995..053a7db77918 100644 --- a/knip.jsonc +++ b/knip.jsonc @@ -24,6 +24,8 @@ "entry": [ "knip-schemas.ts", "mobile-native-client.ts", + // Manual verification seeds a sandbox worktree with these fixtures. + "seed-markdown-scroll-fixtures.mjs", "setup-worktree.ts", "sign-macos.ts", "verify-windows-desktop-artifact.ts", From ab2b11d3861a573e903ec0bd0df80642ac989d29 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 22 Oct 2026 09:22:26 +0000 Subject: [PATCH 7/8] test(web): follow browser test layout and mock reset conventions Co-Authored-By: Claude Opus 5.5 --- .../src/components/files/FilePreviewPanel.browser.test.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/files/FilePreviewPanel.browser.test.tsx b/apps/web/src/components/files/FilePreviewPanel.browser.test.tsx index b1d20ada710e..1aaf8856fe0a 100644 --- a/apps/web/src/components/files/FilePreviewPanel.browser.test.tsx +++ b/apps/web/src/components/files/FilePreviewPanel.browser.test.tsx @@ -29,7 +29,7 @@ const files: Record = { function panel(relativePath: string) { return ( -
+
('[data-slot="scroll-area-viewport"]'), @@ -66,6 +70,7 @@ function viewport(container: HTMLElement) { describe("rendered markdown file preview", () => { // regression: #22300 switching file tabs reset the rendered markdown scroll to the top it("keeps each file's scroll position across file tab switches", async () => { + setup(); localStorage.setItem("t3code.renderMarkdown", "true"); localStorage.setItem("t3code.fileExplorerOpen", "false"); readFile.mockImplementation((_environmentId, _cwd, relativePath: string) => ({ From 323ab8fa79070e01de43adb958605615cb78244a Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Wed, 11 Nov 2026 01:40:13 +0000 Subject: [PATCH 8/8] fix(web): reapply markdown scroll when the viewport resizes; drop manual fixtures AI-assisted; verified with the tests and tools listed above. --- .../src/components/files/FilePreviewPanel.tsx | 6 +- scripts/fixtures/markdown-scroll/alpha.md | 483 ------------ scripts/fixtures/markdown-scroll/beta.md | 483 ------------ scripts/fixtures/markdown-scroll/delayed.md | 17 - scripts/fixtures/markdown-scroll/height.svg | 1 - scripts/fixtures/markdown-scroll/links.md | 3 - scripts/fixtures/markdown-scroll/tasks.md | 723 ------------------ scripts/seed-markdown-scroll-fixtures.mjs | 28 - 8 files changed, 3 insertions(+), 1741 deletions(-) delete mode 100644 scripts/fixtures/markdown-scroll/alpha.md delete mode 100644 scripts/fixtures/markdown-scroll/beta.md delete mode 100644 scripts/fixtures/markdown-scroll/delayed.md delete mode 100644 scripts/fixtures/markdown-scroll/height.svg delete mode 100644 scripts/fixtures/markdown-scroll/links.md delete mode 100644 scripts/fixtures/markdown-scroll/tasks.md delete mode 100644 scripts/seed-markdown-scroll-fixtures.mjs diff --git a/apps/web/src/components/files/FilePreviewPanel.tsx b/apps/web/src/components/files/FilePreviewPanel.tsx index b02d4c87b2f0..a2d32dfa1f5f 100644 --- a/apps/web/src/components/files/FilePreviewPanel.tsx +++ b/apps/web/src/components/files/FilePreviewPanel.tsx @@ -967,8 +967,8 @@ function RenderedMarkdownSurface({ if (!root || !viewport) return; const key = JSON.stringify([environmentId, cwd, relativePath]); const target = renderedMarkdownScrollTops.get(key) ?? 0; - // Images, math, and code blocks can settle after mount; keep reapplying the offset - // while content grows so a clamped early scrollTop does not overwrite the saved one. + // Images, math, and code blocks can settle after mount, and the viewport can resize; + // keep reapplying the offset so a clamped early scrollTop does not overwrite the saved one. let restoring = true; let unobserve = () => {}; // Listen on the root so dragging the scrollbar, a sibling of the viewport, also @@ -985,7 +985,7 @@ function RenderedMarkdownSurface({ if (Math.abs(viewport.scrollTop - target) < 1) { stopRestoring(); } else { - unobserve = observeResize(Array.from(viewport.children), () => { + unobserve = observeResize([viewport, ...viewport.children], () => { viewport.scrollTop = target; if (Math.abs(viewport.scrollTop - target) < 1) stopRestoring(); }); diff --git a/scripts/fixtures/markdown-scroll/alpha.md b/scripts/fixtures/markdown-scroll/alpha.md deleted file mode 100644 index d4438c3deab1..000000000000 --- a/scripts/fixtures/markdown-scroll/alpha.md +++ /dev/null @@ -1,483 +0,0 @@ -# Markdown scroll fixture alpha - -- [ ] Editable checkpoint - -## Section 001 - -ALPHA paragraph 001. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 002 - -ALPHA paragraph 002. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 003 - -ALPHA paragraph 003. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 004 - -ALPHA paragraph 004. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 005 - -ALPHA paragraph 005. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 006 - -ALPHA paragraph 006. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 007 - -ALPHA paragraph 007. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 008 - -ALPHA paragraph 008. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 009 - -ALPHA paragraph 009. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 010 - -ALPHA paragraph 010. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 011 - -ALPHA paragraph 011. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 012 - -ALPHA paragraph 012. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 013 - -ALPHA paragraph 013. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 014 - -ALPHA paragraph 014. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 015 - -ALPHA paragraph 015. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 016 - -ALPHA paragraph 016. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 017 - -ALPHA paragraph 017. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 018 - -ALPHA paragraph 018. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 019 - -ALPHA paragraph 019. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 020 - -ALPHA paragraph 020. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 021 - -ALPHA paragraph 021. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 022 - -ALPHA paragraph 022. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 023 - -ALPHA paragraph 023. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 024 - -ALPHA paragraph 024. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 025 - -ALPHA paragraph 025. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 026 - -ALPHA paragraph 026. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 027 - -ALPHA paragraph 027. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 028 - -ALPHA paragraph 028. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 029 - -ALPHA paragraph 029. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 030 - -ALPHA paragraph 030. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 031 - -ALPHA paragraph 031. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 032 - -ALPHA paragraph 032. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 033 - -ALPHA paragraph 033. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 034 - -ALPHA paragraph 034. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 035 - -ALPHA paragraph 035. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 036 - -ALPHA paragraph 036. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 037 - -ALPHA paragraph 037. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 038 - -ALPHA paragraph 038. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 039 - -ALPHA paragraph 039. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 040 - -ALPHA paragraph 040. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 041 - -ALPHA paragraph 041. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 042 - -ALPHA paragraph 042. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 043 - -ALPHA paragraph 043. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 044 - -ALPHA paragraph 044. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 045 - -ALPHA paragraph 045. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 046 - -ALPHA paragraph 046. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 047 - -ALPHA paragraph 047. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 048 - -ALPHA paragraph 048. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 049 - -ALPHA paragraph 049. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 050 - -ALPHA paragraph 050. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 051 - -ALPHA paragraph 051. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 052 - -ALPHA paragraph 052. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 053 - -ALPHA paragraph 053. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 054 - -ALPHA paragraph 054. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 055 - -ALPHA paragraph 055. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 056 - -ALPHA paragraph 056. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 057 - -ALPHA paragraph 057. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 058 - -ALPHA paragraph 058. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 059 - -ALPHA paragraph 059. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 060 - -ALPHA paragraph 060. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 061 - -ALPHA paragraph 061. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 062 - -ALPHA paragraph 062. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 063 - -ALPHA paragraph 063. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 064 - -ALPHA paragraph 064. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 065 - -ALPHA paragraph 065. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 066 - -ALPHA paragraph 066. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 067 - -ALPHA paragraph 067. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 068 - -ALPHA paragraph 068. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 069 - -ALPHA paragraph 069. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 070 - -ALPHA paragraph 070. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 071 - -ALPHA paragraph 071. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 072 - -ALPHA paragraph 072. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 073 - -ALPHA paragraph 073. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 074 - -ALPHA paragraph 074. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 075 - -ALPHA paragraph 075. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 076 - -ALPHA paragraph 076. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 077 - -ALPHA paragraph 077. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 078 - -ALPHA paragraph 078. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 079 - -ALPHA paragraph 079. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 080 - -ALPHA paragraph 080. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 081 - -ALPHA paragraph 081. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 082 - -ALPHA paragraph 082. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 083 - -ALPHA paragraph 083. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 084 - -ALPHA paragraph 084. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 085 - -ALPHA paragraph 085. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 086 - -ALPHA paragraph 086. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 087 - -ALPHA paragraph 087. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 088 - -ALPHA paragraph 088. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 089 - -ALPHA paragraph 089. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 090 - -ALPHA paragraph 090. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 091 - -ALPHA paragraph 091. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 092 - -ALPHA paragraph 092. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 093 - -ALPHA paragraph 093. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 094 - -ALPHA paragraph 094. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 095 - -ALPHA paragraph 095. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 096 - -ALPHA paragraph 096. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 097 - -ALPHA paragraph 097. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 098 - -ALPHA paragraph 098. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 099 - -ALPHA paragraph 099. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 100 - -ALPHA paragraph 100. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 101 - -ALPHA paragraph 101. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 102 - -ALPHA paragraph 102. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 103 - -ALPHA paragraph 103. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 104 - -ALPHA paragraph 104. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 105 - -ALPHA paragraph 105. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 106 - -ALPHA paragraph 106. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 107 - -ALPHA paragraph 107. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 108 - -ALPHA paragraph 108. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 109 - -ALPHA paragraph 109. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 110 - -ALPHA paragraph 110. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 111 - -ALPHA paragraph 111. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 112 - -ALPHA paragraph 112. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 113 - -ALPHA paragraph 113. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 114 - -ALPHA paragraph 114. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 115 - -ALPHA paragraph 115. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 116 - -ALPHA paragraph 116. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 117 - -ALPHA paragraph 117. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 118 - -ALPHA paragraph 118. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 119 - -ALPHA paragraph 119. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 120 - -ALPHA paragraph 120. Deterministic text for scroll restoration, wrapping, and independent file positions. diff --git a/scripts/fixtures/markdown-scroll/beta.md b/scripts/fixtures/markdown-scroll/beta.md deleted file mode 100644 index 47352809bb6f..000000000000 --- a/scripts/fixtures/markdown-scroll/beta.md +++ /dev/null @@ -1,483 +0,0 @@ -# Markdown scroll fixture beta - -- [ ] Editable checkpoint - -## Section 001 - -BETA paragraph 001. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 002 - -BETA paragraph 002. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 003 - -BETA paragraph 003. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 004 - -BETA paragraph 004. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 005 - -BETA paragraph 005. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 006 - -BETA paragraph 006. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 007 - -BETA paragraph 007. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 008 - -BETA paragraph 008. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 009 - -BETA paragraph 009. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 010 - -BETA paragraph 010. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 011 - -BETA paragraph 011. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 012 - -BETA paragraph 012. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 013 - -BETA paragraph 013. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 014 - -BETA paragraph 014. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 015 - -BETA paragraph 015. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 016 - -BETA paragraph 016. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 017 - -BETA paragraph 017. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 018 - -BETA paragraph 018. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 019 - -BETA paragraph 019. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 020 - -BETA paragraph 020. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 021 - -BETA paragraph 021. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 022 - -BETA paragraph 022. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 023 - -BETA paragraph 023. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 024 - -BETA paragraph 024. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 025 - -BETA paragraph 025. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 026 - -BETA paragraph 026. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 027 - -BETA paragraph 027. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 028 - -BETA paragraph 028. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 029 - -BETA paragraph 029. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 030 - -BETA paragraph 030. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 031 - -BETA paragraph 031. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 032 - -BETA paragraph 032. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 033 - -BETA paragraph 033. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 034 - -BETA paragraph 034. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 035 - -BETA paragraph 035. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 036 - -BETA paragraph 036. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 037 - -BETA paragraph 037. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 038 - -BETA paragraph 038. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 039 - -BETA paragraph 039. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 040 - -BETA paragraph 040. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 041 - -BETA paragraph 041. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 042 - -BETA paragraph 042. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 043 - -BETA paragraph 043. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 044 - -BETA paragraph 044. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 045 - -BETA paragraph 045. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 046 - -BETA paragraph 046. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 047 - -BETA paragraph 047. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 048 - -BETA paragraph 048. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 049 - -BETA paragraph 049. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 050 - -BETA paragraph 050. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 051 - -BETA paragraph 051. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 052 - -BETA paragraph 052. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 053 - -BETA paragraph 053. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 054 - -BETA paragraph 054. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 055 - -BETA paragraph 055. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 056 - -BETA paragraph 056. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 057 - -BETA paragraph 057. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 058 - -BETA paragraph 058. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 059 - -BETA paragraph 059. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 060 - -BETA paragraph 060. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 061 - -BETA paragraph 061. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 062 - -BETA paragraph 062. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 063 - -BETA paragraph 063. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 064 - -BETA paragraph 064. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 065 - -BETA paragraph 065. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 066 - -BETA paragraph 066. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 067 - -BETA paragraph 067. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 068 - -BETA paragraph 068. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 069 - -BETA paragraph 069. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 070 - -BETA paragraph 070. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 071 - -BETA paragraph 071. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 072 - -BETA paragraph 072. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 073 - -BETA paragraph 073. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 074 - -BETA paragraph 074. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 075 - -BETA paragraph 075. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 076 - -BETA paragraph 076. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 077 - -BETA paragraph 077. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 078 - -BETA paragraph 078. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 079 - -BETA paragraph 079. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 080 - -BETA paragraph 080. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 081 - -BETA paragraph 081. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 082 - -BETA paragraph 082. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 083 - -BETA paragraph 083. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 084 - -BETA paragraph 084. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 085 - -BETA paragraph 085. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 086 - -BETA paragraph 086. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 087 - -BETA paragraph 087. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 088 - -BETA paragraph 088. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 089 - -BETA paragraph 089. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 090 - -BETA paragraph 090. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 091 - -BETA paragraph 091. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 092 - -BETA paragraph 092. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 093 - -BETA paragraph 093. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 094 - -BETA paragraph 094. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 095 - -BETA paragraph 095. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 096 - -BETA paragraph 096. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 097 - -BETA paragraph 097. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 098 - -BETA paragraph 098. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 099 - -BETA paragraph 099. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 100 - -BETA paragraph 100. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 101 - -BETA paragraph 101. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 102 - -BETA paragraph 102. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 103 - -BETA paragraph 103. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 104 - -BETA paragraph 104. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 105 - -BETA paragraph 105. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 106 - -BETA paragraph 106. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 107 - -BETA paragraph 107. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 108 - -BETA paragraph 108. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 109 - -BETA paragraph 109. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 110 - -BETA paragraph 110. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 111 - -BETA paragraph 111. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 112 - -BETA paragraph 112. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 113 - -BETA paragraph 113. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 114 - -BETA paragraph 114. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 115 - -BETA paragraph 115. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 116 - -BETA paragraph 116. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 117 - -BETA paragraph 117. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 118 - -BETA paragraph 118. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 119 - -BETA paragraph 119. Deterministic text for scroll restoration, wrapping, and independent file positions. - -## Section 120 - -BETA paragraph 120. Deterministic text for scroll restoration, wrapping, and independent file positions. diff --git a/scripts/fixtures/markdown-scroll/delayed.md b/scripts/fixtures/markdown-scroll/delayed.md deleted file mode 100644 index 823a02a3dcd0..000000000000 --- a/scripts/fixtures/markdown-scroll/delayed.md +++ /dev/null @@ -1,17 +0,0 @@ -# Markdown scroll fixture delayed - -![Height fixture 0](./height.svg) - -![Height fixture 1](./height.svg) - -![Height fixture 2](./height.svg) - -![Height fixture 3](./height.svg) - -![Height fixture 4](./height.svg) - -![Height fixture 5](./height.svg) - -## Tail - -Actual authenticated local images control this document height. diff --git a/scripts/fixtures/markdown-scroll/height.svg b/scripts/fixtures/markdown-scroll/height.svg deleted file mode 100644 index ce2ba05d0434..000000000000 --- a/scripts/fixtures/markdown-scroll/height.svg +++ /dev/null @@ -1 +0,0 @@ -Height marker 0Height marker 100Height marker 200Height marker 300Height marker 400Height marker 500Height marker 600Height marker 700Height marker 800Height marker 900 diff --git a/scripts/fixtures/markdown-scroll/links.md b/scripts/fixtures/markdown-scroll/links.md deleted file mode 100644 index 70b38bc1b150..000000000000 --- a/scripts/fixtures/markdown-scroll/links.md +++ /dev/null @@ -1,3 +0,0 @@ -# Markdown scroll fixture links - -[Open beta fixture](./beta.md) diff --git a/scripts/fixtures/markdown-scroll/tasks.md b/scripts/fixtures/markdown-scroll/tasks.md deleted file mode 100644 index 1486fbfbdca4..000000000000 --- a/scripts/fixtures/markdown-scroll/tasks.md +++ /dev/null @@ -1,723 +0,0 @@ -# Markdown scroll fixture tasks - -- [ ] Editable checkpoint - -## Section 001 - -ALPHA paragraph 001. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 002 - -ALPHA paragraph 002. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 003 - -ALPHA paragraph 003. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 004 - -ALPHA paragraph 004. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 005 - -ALPHA paragraph 005. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 006 - -ALPHA paragraph 006. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 007 - -ALPHA paragraph 007. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 008 - -ALPHA paragraph 008. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 009 - -ALPHA paragraph 009. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 010 - -ALPHA paragraph 010. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 011 - -ALPHA paragraph 011. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 012 - -ALPHA paragraph 012. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 013 - -ALPHA paragraph 013. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 014 - -ALPHA paragraph 014. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 015 - -ALPHA paragraph 015. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 016 - -ALPHA paragraph 016. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 017 - -ALPHA paragraph 017. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 018 - -ALPHA paragraph 018. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 019 - -ALPHA paragraph 019. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 020 - -ALPHA paragraph 020. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 021 - -ALPHA paragraph 021. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 022 - -ALPHA paragraph 022. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 023 - -ALPHA paragraph 023. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 024 - -ALPHA paragraph 024. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 025 - -ALPHA paragraph 025. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 026 - -ALPHA paragraph 026. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 027 - -ALPHA paragraph 027. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 028 - -ALPHA paragraph 028. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 029 - -ALPHA paragraph 029. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 030 - -ALPHA paragraph 030. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 031 - -ALPHA paragraph 031. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 032 - -ALPHA paragraph 032. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 033 - -ALPHA paragraph 033. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 034 - -ALPHA paragraph 034. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 035 - -ALPHA paragraph 035. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 036 - -ALPHA paragraph 036. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 037 - -ALPHA paragraph 037. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 038 - -ALPHA paragraph 038. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 039 - -ALPHA paragraph 039. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 040 - -ALPHA paragraph 040. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 041 - -ALPHA paragraph 041. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 042 - -ALPHA paragraph 042. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 043 - -ALPHA paragraph 043. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 044 - -ALPHA paragraph 044. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 045 - -ALPHA paragraph 045. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 046 - -ALPHA paragraph 046. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 047 - -ALPHA paragraph 047. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 048 - -ALPHA paragraph 048. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 049 - -ALPHA paragraph 049. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 050 - -ALPHA paragraph 050. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 051 - -ALPHA paragraph 051. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 052 - -ALPHA paragraph 052. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 053 - -ALPHA paragraph 053. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 054 - -ALPHA paragraph 054. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 055 - -ALPHA paragraph 055. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 056 - -ALPHA paragraph 056. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 057 - -ALPHA paragraph 057. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 058 - -ALPHA paragraph 058. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 059 - -ALPHA paragraph 059. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 060 - -ALPHA paragraph 060. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 061 - -ALPHA paragraph 061. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 062 - -ALPHA paragraph 062. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 063 - -ALPHA paragraph 063. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 064 - -ALPHA paragraph 064. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 065 - -ALPHA paragraph 065. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 066 - -ALPHA paragraph 066. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 067 - -ALPHA paragraph 067. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 068 - -ALPHA paragraph 068. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 069 - -ALPHA paragraph 069. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 070 - -ALPHA paragraph 070. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 071 - -ALPHA paragraph 071. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 072 - -ALPHA paragraph 072. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 073 - -ALPHA paragraph 073. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 074 - -ALPHA paragraph 074. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 075 - -ALPHA paragraph 075. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 076 - -ALPHA paragraph 076. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 077 - -ALPHA paragraph 077. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 078 - -ALPHA paragraph 078. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 079 - -ALPHA paragraph 079. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 080 - -ALPHA paragraph 080. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 081 - -ALPHA paragraph 081. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 082 - -ALPHA paragraph 082. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 083 - -ALPHA paragraph 083. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 084 - -ALPHA paragraph 084. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 085 - -ALPHA paragraph 085. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 086 - -ALPHA paragraph 086. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 087 - -ALPHA paragraph 087. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 088 - -ALPHA paragraph 088. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 089 - -ALPHA paragraph 089. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 090 - -ALPHA paragraph 090. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 091 - -ALPHA paragraph 091. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 092 - -ALPHA paragraph 092. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 093 - -ALPHA paragraph 093. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 094 - -ALPHA paragraph 094. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 095 - -ALPHA paragraph 095. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 096 - -ALPHA paragraph 096. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 097 - -ALPHA paragraph 097. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 098 - -ALPHA paragraph 098. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 099 - -ALPHA paragraph 099. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 100 - -ALPHA paragraph 100. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 101 - -ALPHA paragraph 101. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 102 - -ALPHA paragraph 102. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 103 - -ALPHA paragraph 103. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 104 - -ALPHA paragraph 104. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 105 - -ALPHA paragraph 105. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 106 - -ALPHA paragraph 106. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 107 - -ALPHA paragraph 107. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 108 - -ALPHA paragraph 108. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 109 - -ALPHA paragraph 109. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 110 - -ALPHA paragraph 110. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 111 - -ALPHA paragraph 111. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 112 - -ALPHA paragraph 112. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 113 - -ALPHA paragraph 113. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 114 - -ALPHA paragraph 114. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 115 - -ALPHA paragraph 115. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 116 - -ALPHA paragraph 116. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 117 - -ALPHA paragraph 117. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 118 - -ALPHA paragraph 118. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 119 - -ALPHA paragraph 119. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task - -## Section 120 - -ALPHA paragraph 120. Deterministic text for scroll restoration, wrapping, and independent file positions. - -- [ ] Section task diff --git a/scripts/seed-markdown-scroll-fixtures.mjs b/scripts/seed-markdown-scroll-fixtures.mjs deleted file mode 100644 index fa9549a181be..000000000000 --- a/scripts/seed-markdown-scroll-fixtures.mjs +++ /dev/null @@ -1,28 +0,0 @@ -import * as NodeFS from "node:fs"; -import * as NodeURL from "node:url"; -import * as NodePath from "node:path"; - -const root = NodeURL.fileURLToPath(new URL("../", import.meta.url)); -const targets = process.argv.slice(2); -if (!targets.length) { - throw new Error("Usage: node scripts/seed-markdown-scroll-fixtures.mjs [...]"); -} -for (const target of targets) { - const destination = NodePath.resolve(target, ".t3/markdown-scroll-fixtures"); - NodeFS.mkdirSync(destination, { recursive: true }); - for (const name of ["alpha.md", "beta.md", "delayed.md", "height.svg", "tasks.md", "links.md"]) { - NodeFS.copyFileSync( - NodePath.resolve(root, `scripts/fixtures/markdown-scroll/${name}`), - NodePath.resolve(destination, name), - ); - } - const secondary = NodePath.resolve(target, "apps/server/.t3/markdown-scroll-fixtures"); - NodeFS.mkdirSync(secondary, { recursive: true }); - NodeFS.writeFileSync( - NodePath.resolve(secondary, "alpha.md"), - NodeFS.readFileSync(NodePath.resolve(destination, "alpha.md"), "utf8").replace( - "fixture alpha", - "fixture workspace B alpha", - ), - ); -}