test(pages): cover the canvas frame; record its unsandboxed frame in the proposal
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
This commit is contained in:
1 parent
7e916b77b9
commit
6b3498d123
4 files changed
+35
-6
No files matched your search
@@ -46,7 +46,7 @@ The editor mounts `<iframe>` with no `src` (about:blank, same origin), then rend
|
||||
|
||||
### 2. Desktop is 1280 px, scaled
|
||||
|
||||
- **Desktop** renders the frame 1280 px wide and scales it with a CSS transform to the width left beside the panel. The frame is one screen tall and scrolls inside, like a device (the spike found that growing it to its content loops, since a landing page is at least one screen tall: `min-h-svh`).
|
||||
- **Desktop** renders the frame 1280 px wide and scales it with a CSS transform to the width left beside the panel. The frame is one screen tall and scrolls inside, like a device. A frame grown to its content risks a feedback loop with the page's `min-h-svh`, and a fixed screen keeps `svh` honest.
|
||||
- **Phone** is 390 px at 1:1.
|
||||
- Outlines, toolbars and "Add section" buttons are drawn inside the frame document, so they scale with the page.
|
||||
|
||||
|
||||
@@ -46,5 +46,6 @@ None.
|
||||
- `CmsBlocks` gains edit-mode hooks, which the public page does not use.
|
||||
- `HtmlFrame` listens on the window of the document it is in.
|
||||
- A leave guard for in-app links.
|
||||
- **Security:** the editor canvas is the portal's only frame without a `sandbox`. It must be same-origin for the editor to render into it, and a sandbox would also stop scripts in the Custom HTML frames nested inside. It loads only a constant blank document with no `src`, so no stored HTML ever runs as the portal. The markup sweep test allow-lists exactly that file and shape (design Decision 1).
|
||||
- **No server, API, database or SQL changes.** New labels only, with a label SQL file.
|
||||
- **No new dependencies.** Tiptap is already installed; dragging uses native drag-and-drop.
|
||||
Reference in new issue
Block a user