Skip to content

Clone any website into a pixel-accurate Next.js app with AI — Playwright-measured extraction (no eyeballing), spec-gated parallel builder agents, and scored pixel-diff QA at phone/tablet/desktop. Works with Claude Code, Cursor, Copilot + 9 more.

fix(canvas): record via captureStream, and find rasters inside inline SVG

Mahanaicoach9330c79f0fd9
diff --git a/.claude/skills/clone-website/SKILL.md b/.claude/skills/clone-website/SKILL.md
index 9dc7389..4f2c512 100644
--- a/.claude/skills/clone-website/SKILL.md
+++ b/.claude/skills/clone-website/SKILL.md
@@ -37,7 +37,7 @@ Ten scripts do the mechanical work — **use them instead of hand-measuring via
| `node scripts/extract/crawl.mjs <url> [--max 25]` | Discover pages (sitemap + nav links) → `docs/research/<host>/sitemap.json` |
| `node scripts/extract/tokens.mjs <url>` | Colors, fonts, :root CSS vars, shadows, global scroll behaviors → `tokens.json` |
| `node scripts/extract/assets.mjs <url>` | Enumerate + download all images/videos/SVGs/favicons/fonts → `public/`, `assets.json` |
-| `node scripts/extract/section.mjs <url> --selector "css" [--name x] [--state scroll:600\|click:sel\|hover:sel] [--viewport pc\|ipad\|phone]` | Full computed-style DOM walk of one section; `--state` captures a second state and diffs them |
+| `node scripts/extract/section.mjs <url> --selector "css" [--name x] [--state scroll:600\|click:sel\|hover:sel] [--viewport pc\|ipad\|phone]` | Full computed-style DOM walk. **`--selector`/`--name` repeat — pass every section in one call and they all extract from a single page load.** `--state` captures a second state and diffs them (element styles *and* `::before`/`::after`), waiting for the section's real transition duration |
| `node scripts/extract/screenshot.mjs <url> [--selector css] [--name x]` | Screenshots at phone/iPad/PC → `docs/design-references/<host>/` |
| `node scripts/extract/responsive.mjs <url> [--selector css]` | Auto-detects sections and measures each one's real layout (actual column counts, hidden elements, font sizes) at all 3 viewports → `responsive.json` |
| `node scripts/extract/probe.mjs <url> --selector "css" [--selector "css2"] [--props a,b,c]` | Exact computed values for specific selectors at all 3 viewports, as a markdown table with a **varies** column — paste straight into a spec's Responsive section |
@@ -102,15 +102,32 @@ node scripts/manifest.mjs add-section --route / --name hero --selector "section.
Work through `manifest.mjs next` until no sections remain. For each section:
### 3a. Extract
+
+**Batch the default-state walk once per page, not once per section.** Every `--selector`
+shares a single page load, so this is one navigation instead of N:
+
+```bash
+# ONE call covering every section on the page — do this before the per-section loop
+node scripts/extract/section.mjs <page-url> \
+ --selector "<sel-1>" --name <name-1> \
+ --selector "<sel-2>" --name <name-2> \
+ --selector "<sel-3>" --name <name-3>
+```
+
+Then per section:
```bash
-node scripts/extract/screenshot.mjs <page-url> --selector "<sel>" --name <name> # all 3 viewports
-node scripts/extract/section.mjs <page-url> --selector "<sel>" --name <name> # computed styles + text (incl. ::before/::after)
+node scripts/extract/screenshot.mjs <page-url> --selector "<sel>" --name <name> # all 3 viewports, in parallel
node scripts/extract/probe.mjs <page-url> --selector "<sel>" --selector "<sel> h2" # per-viewport table for the Responsive section
# per discovered behavior — one call per state:
node scripts/extract/section.mjs <page-url> --selector "<sel>" --name <name>-hover --state hover:".card"
node scripts/extract/section.mjs <page-url> --selector "<sel>" --name <name>-scrolled --state scroll:600
# per tab/pill state: --state click:".tab-2" etc. EVERY state, not just the default.
```
+State captures wait for the section's actual transition duration, so a slow fade is
+recorded at its end value, not mid-flight — check `settleMs` in the output if a diff
+looks wrong. The `diff` array covers `::before`/`::after` too, which is where hover
+overlays usually live.
+
Mark: `manifest.mjs set --route <r> --section <name> --stage extracted`
### 3b. Write the spec — `docs/research/components/<route-slug>/<name>.spec.md`
diff --git a/docs/design-references/127.0.0.1/new-page-ipad.png b/docs/design-references/127.0.0.1/new-page-ipad.png
deleted file mode 100644
index 0ee0402..0000000
Binary files a/docs/design-references/127.0.0.1/new-page-ipad.png and /dev/null differ
diff --git a/docs/design-references/127.0.0.1/new-page-pc.png b/docs/design-references/127.0.0.1/new-page-pc.png
deleted file mode 100644
index 2a6da72..0000000
Binary files a/docs/design-references/127.0.0.1/new-page-pc.png and /dev/null differ
diff --git a/docs/design-references/127.0.0.1/new-page-phone.png b/docs/design-references/127.0.0.1/new-page-phone.png
deleted file mode 100644
index 1e8a05c..0000000
Binary files a/docs/design-references/127.0.0.1/new-page-phone.png and /dev/null differ
diff --git a/docs/research/127.0.0.1/sections/n-b.json b/docs/research/127.0.0.1/sections/n-b.json
deleted file mode 100644
index 6f5ffbd..0000000
--- a/docs/research/127.0.0.1/sections/n-b.json
+++ /dev/null
@@ -1,140 +0,0 @@
-{
- "url": "http://127.0.0.1:8899/",
- "viewport": "pc",
- "generatedAt": "2026-07-21T20:36:13.288Z",
- "selector": "#banner",
- "tree": {
- "tag": "section",
- "classes": null,
- "text": null,
- "rect": {
- "x": 0,
- "y": 19,
- "w": 1440,
- "h": 640
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(36, 41, 67)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "60px",
- "paddingRight": "40px",
- "paddingBottom": "60px",
- "paddingLeft": "40px",
- "width": "1360px",
- "height": "520px",
- "minHeight": "520px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 2,
- "children": [
- {
- "tag": "h1",
- "classes": null,
- "text": "Hero heading",
- "rect": {
- "x": 40,
- "y": 119,
- "w": 1360,
- "h": 94
- },
- "styles": {
- "fontSize": "60px",
- "fontWeight": "700",
- "fontFamily": "system-ui",
- "letterSpacing": "-1.2px",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "marginTop": "40.2px",
- "marginBottom": "40.2px",
- "width": "1360px",
- "height": "94px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::after": {
- "content": "\"\"",
- "width": "120px",
- "height": "6px",
- "backgroundColor": "rgb(24, 191, 239)",
- "opacity": "1",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "margin": "16px 0px 0px",
- "transition": "width 2.5s"
- }
- },
- "childCount": 0,
- "children": []
- },
- {
- "tag": "p",
- "classes": null,
- "text": "Sub copy here.",
- "rect": {
- "x": 40,
- "y": 253,
- "w": 1360,
- "h": 19
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "marginTop": "16px",
- "marginBottom": "16px",
- "width": "1360px",
- "height": "19px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- }
-}
diff --git a/docs/research/127.0.0.1/sections/n-c.json b/docs/research/127.0.0.1/sections/n-c.json
deleted file mode 100644
index 6707ab8..0000000
--- a/docs/research/127.0.0.1/sections/n-c.json
+++ /dev/null
@@ -1,124 +0,0 @@
-{
- "url": "http://127.0.0.1:8899/",
- "viewport": "pc",
- "generatedAt": "2026-07-21T20:36:13.288Z",
- "selector": "#two",
- "tree": {
- "tag": "section",
- "classes": null,
- "text": null,
- "rect": {
- "x": 0,
- "y": 545,
- "w": 1440,
- "h": 224
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(0, 0, 0)",
- "textAlign": "start",
- "backgroundColor": "rgb(255, 255, 255)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "60px",
- "paddingRight": "40px",
- "paddingBottom": "60px",
- "paddingLeft": "40px",
- "width": "1360px",
- "height": "103.812px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(0, 0, 0)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 2,
- "children": [
- {
- "tag": "h2",
- "classes": null,
- "text": "CTA",
- "rect": {
- "x": 40,
- "y": 625,
- "w": 1360,
- "h": 29
- },
- "styles": {
- "fontSize": "24px",
- "fontWeight": "700",
- "fontFamily": "system-ui",
- "color": "rgb(0, 0, 0)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "marginTop": "19.92px",
- "marginBottom": "19.92px",
- "width": "1360px",
- "height": "29px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(0, 0, 0)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- },
- {
- "tag": "p",
- "classes": null,
- "text": "Do the thing.",
- "rect": {
- "x": 40,
- "y": 674,
- "w": 1360,
- "h": 19
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(0, 0, 0)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "marginTop": "16px",
- "marginBottom": "16px",
- "width": "1360px",
- "height": "19px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(0, 0, 0)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- }
-}
diff --git a/docs/research/127.0.0.1/sections/n-h.json b/docs/research/127.0.0.1/sections/n-h.json
deleted file mode 100644
index 11cf640..0000000
--- a/docs/research/127.0.0.1/sections/n-h.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "url": "http://127.0.0.1:8899/",
- "viewport": "pc",
- "generatedAt": "2026-07-21T20:36:13.288Z",
- "selector": "header#header",
- "tree": {
- "tag": "header",
- "classes": null,
- "text": null,
- "rect": {
- "x": 0,
- "y": 0,
- "w": 1440,
- "h": 19
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(0, 0, 0)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "width": "1440px",
- "height": "19px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(0, 0, 0)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 1,
- "children": [
- {
- "tag": "nav",
- "classes": null,
- "text": "Nav",
- "rect": {
- "x": 0,
- "y": 0,
- "w": 1440,
- "h": 19
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(0, 0, 0)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "width": "1440px",
- "height": "19px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(0, 0, 0)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- }
-}
diff --git a/docs/research/127.0.0.1/sections/n-t.json b/docs/research/127.0.0.1/sections/n-t.json
deleted file mode 100644
index 539d89e..0000000
--- a/docs/research/127.0.0.1/sections/n-t.json
+++ /dev/null
@@ -1,666 +0,0 @@
-{
- "url": "http://127.0.0.1:8899/",
- "viewport": "pc",
- "generatedAt": "2026-07-21T20:36:13.288Z",
- "selector": "#one",
- "tree": {
- "tag": "section",
- "classes": null,
- "text": null,
- "rect": {
- "x": 0,
- "y": 236,
- "w": 1440,
- "h": 664
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(0, 0, 0)",
- "textAlign": "start",
- "backgroundColor": "rgb(245, 245, 245)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "60px",
- "paddingRight": "40px",
- "paddingBottom": "60px",
- "paddingLeft": "40px",
- "width": "1360px",
- "height": "544px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(0, 0, 0)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 1,
- "children": [
- {
- "tag": "div",
- "classes": "tiles",
- "text": null,
- "rect": {
- "x": 40,
- "y": 296,
- "w": 1360,
- "h": 544
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(0, 0, 0)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "width": "1360px",
- "height": "544px",
- "display": "grid",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gap": "24px",
- "rowGap": "24px",
- "columnGap": "24px",
- "gridTemplateColumns": "437.328px 437.328px 437.344px",
- "gridTemplateRows": "260px 260px",
- "gridAutoFlow": "row",
- "borderColor": "rgb(0, 0, 0)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 6,
- "children": [
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 40,
- "y": 296,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.328px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.328px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "One",
- "rect": {
- "x": 60,
- "y": 317,
- "w": 30,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- },
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 501,
- "y": 296,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.328px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.328px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "Two",
- "rect": {
- "x": 521,
- "y": 317,
- "w": 29,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- },
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 963,
- "y": 296,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.344px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.344px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "Three",
- "rect": {
- "x": 983,
- "y": 317,
- "w": 42,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- },
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 40,
- "y": 580,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.328px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.328px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "Four",
- "rect": {
- "x": 60,
- "y": 601,
- "w": 33,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- },
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 501,
- "y": 580,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.328px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.328px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "Five",
- "rect": {
- "x": 521,
- "y": 601,
- "w": 30,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- },
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 963,
- "y": 580,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.344px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.344px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "Six",
- "rect": {
- "x": 983,
- "y": 601,
- "w": 22,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- }
- ]
- }
- ]
- }
-}
diff --git a/docs/research/127.0.0.1/sections/t-banner.json b/docs/research/127.0.0.1/sections/t-banner.json
deleted file mode 100644
index bdd58d9..0000000
--- a/docs/research/127.0.0.1/sections/t-banner.json
+++ /dev/null
@@ -1,140 +0,0 @@
-{
- "url": "http://127.0.0.1:8899/",
- "viewport": "pc",
- "generatedAt": "2026-07-21T20:33:54.245Z",
- "selector": "#banner",
- "tree": {
- "tag": "section",
- "classes": null,
- "text": null,
- "rect": {
- "x": 0,
- "y": 19,
- "w": 1440,
- "h": 640
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(36, 41, 67)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "60px",
- "paddingRight": "40px",
- "paddingBottom": "60px",
- "paddingLeft": "40px",
- "width": "1360px",
- "height": "520px",
- "minHeight": "520px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 2,
- "children": [
- {
- "tag": "h1",
- "classes": null,
- "text": "Hero heading",
- "rect": {
- "x": 40,
- "y": 119,
- "w": 1360,
- "h": 94
- },
- "styles": {
- "fontSize": "60px",
- "fontWeight": "700",
- "fontFamily": "system-ui",
- "letterSpacing": "-1.2px",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "marginTop": "40.2px",
- "marginBottom": "40.2px",
- "width": "1360px",
- "height": "94px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::after": {
- "content": "\"\"",
- "width": "120px",
- "height": "6px",
- "backgroundColor": "rgb(24, 191, 239)",
- "opacity": "1",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "margin": "16px 0px 0px",
- "transition": "width 2.5s"
- }
- },
- "childCount": 0,
- "children": []
- },
- {
- "tag": "p",
- "classes": null,
- "text": "Sub copy here.",
- "rect": {
- "x": 40,
- "y": 253,
- "w": 1360,
- "h": 19
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "marginTop": "16px",
- "marginBottom": "16px",
- "width": "1360px",
- "height": "19px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- }
-}
diff --git a/docs/research/127.0.0.1/sections/t-chrome.json b/docs/research/127.0.0.1/sections/t-chrome.json
deleted file mode 100644
index f1c2d53..0000000
--- a/docs/research/127.0.0.1/sections/t-chrome.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "url": "http://127.0.0.1:8899/",
- "viewport": "pc",
- "generatedAt": "2026-07-21T20:33:54.245Z",
- "selector": "header#header",
- "tree": {
- "tag": "header",
- "classes": null,
- "text": null,
- "rect": {
- "x": 0,
- "y": 0,
- "w": 1440,
- "h": 19
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(0, 0, 0)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "width": "1440px",
- "height": "19px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(0, 0, 0)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 1,
- "children": [
- {
- "tag": "nav",
- "classes": null,
- "text": "Nav",
- "rect": {
- "x": 0,
- "y": 0,
- "w": 1440,
- "h": 19
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(0, 0, 0)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "width": "1440px",
- "height": "19px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(0, 0, 0)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- }
-}
diff --git a/docs/research/127.0.0.1/sections/t-cta.json b/docs/research/127.0.0.1/sections/t-cta.json
deleted file mode 100644
index 1d86564..0000000
--- a/docs/research/127.0.0.1/sections/t-cta.json
+++ /dev/null
@@ -1,124 +0,0 @@
-{
- "url": "http://127.0.0.1:8899/",
- "viewport": "pc",
- "generatedAt": "2026-07-21T20:33:54.245Z",
- "selector": "#two",
- "tree": {
- "tag": "section",
- "classes": null,
- "text": null,
- "rect": {
- "x": 0,
- "y": 545,
- "w": 1440,
- "h": 224
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(0, 0, 0)",
- "textAlign": "start",
- "backgroundColor": "rgb(255, 255, 255)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "60px",
- "paddingRight": "40px",
- "paddingBottom": "60px",
- "paddingLeft": "40px",
- "width": "1360px",
- "height": "103.812px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(0, 0, 0)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 2,
- "children": [
- {
- "tag": "h2",
- "classes": null,
- "text": "CTA",
- "rect": {
- "x": 40,
- "y": 625,
- "w": 1360,
- "h": 29
- },
- "styles": {
- "fontSize": "24px",
- "fontWeight": "700",
- "fontFamily": "system-ui",
- "color": "rgb(0, 0, 0)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "marginTop": "19.92px",
- "marginBottom": "19.92px",
- "width": "1360px",
- "height": "29px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(0, 0, 0)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- },
- {
- "tag": "p",
- "classes": null,
- "text": "Do the thing.",
- "rect": {
- "x": 40,
- "y": 674,
- "w": 1360,
- "h": 19
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(0, 0, 0)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "marginTop": "16px",
- "marginBottom": "16px",
- "width": "1360px",
- "height": "19px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(0, 0, 0)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- }
-}
diff --git a/docs/research/127.0.0.1/sections/t-tiles-hover.json b/docs/research/127.0.0.1/sections/t-tiles-hover.json
deleted file mode 100644
index e4e67be..0000000
--- a/docs/research/127.0.0.1/sections/t-tiles-hover.json
+++ /dev/null
@@ -1,1336 +0,0 @@
-{
- "url": "http://127.0.0.1:8899/",
- "viewport": "pc",
- "generatedAt": "2026-07-21T20:34:05.709Z",
- "selector": "#one",
- "trigger": "hover:.tile",
- "settleMs": 2500,
- "stateA": {
- "tag": "section",
- "classes": null,
- "text": null,
- "rect": {
- "x": 0,
- "y": 236,
- "w": 1440,
- "h": 664
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(0, 0, 0)",
- "textAlign": "start",
- "backgroundColor": "rgb(245, 245, 245)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "60px",
- "paddingRight": "40px",
- "paddingBottom": "60px",
- "paddingLeft": "40px",
- "width": "1360px",
- "height": "544px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(0, 0, 0)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 1,
- "children": [
- {
- "tag": "div",
- "classes": "tiles",
- "text": null,
- "rect": {
- "x": 40,
- "y": 296,
- "w": 1360,
- "h": 544
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(0, 0, 0)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "width": "1360px",
- "height": "544px",
- "display": "grid",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gap": "24px",
- "rowGap": "24px",
- "columnGap": "24px",
- "gridTemplateColumns": "437.328px 437.328px 437.344px",
- "gridTemplateRows": "260px 260px",
- "gridAutoFlow": "row",
- "borderColor": "rgb(0, 0, 0)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 6,
- "children": [
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 40,
- "y": 296,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.328px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.328px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "One",
- "rect": {
- "x": 60,
- "y": 317,
- "w": 30,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- },
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 501,
- "y": 296,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.328px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.328px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "Two",
- "rect": {
- "x": 521,
- "y": 317,
- "w": 29,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- },
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 963,
- "y": 296,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.344px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.344px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "Three",
- "rect": {
- "x": 983,
- "y": 317,
- "w": 42,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- },
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 40,
- "y": 580,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.328px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.328px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "Four",
- "rect": {
- "x": 60,
- "y": 601,
- "w": 33,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- },
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 501,
- "y": 580,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.328px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.328px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "Five",
- "rect": {
- "x": 521,
- "y": 601,
- "w": 30,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- },
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 963,
- "y": 580,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.344px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.344px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "Six",
- "rect": {
- "x": 983,
- "y": 601,
- "w": 22,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- }
- ]
- }
- ]
- },
- "stateB": {
- "tag": "section",
- "classes": null,
- "text": null,
- "rect": {
- "x": 0,
- "y": 236,
- "w": 1440,
- "h": 664
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(0, 0, 0)",
- "textAlign": "start",
- "backgroundColor": "rgb(245, 245, 245)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "60px",
- "paddingRight": "40px",
- "paddingBottom": "60px",
- "paddingLeft": "40px",
- "width": "1360px",
- "height": "544px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(0, 0, 0)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 1,
- "children": [
- {
- "tag": "div",
- "classes": "tiles",
- "text": null,
- "rect": {
- "x": 40,
- "y": 296,
- "w": 1360,
- "h": 544
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(0, 0, 0)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "width": "1360px",
- "height": "544px",
- "display": "grid",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gap": "24px",
- "rowGap": "24px",
- "columnGap": "24px",
- "gridTemplateColumns": "437.328px 437.328px 437.344px",
- "gridTemplateRows": "260px 260px",
- "gridAutoFlow": "row",
- "borderColor": "rgb(0, 0, 0)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 6,
- "children": [
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 40,
- "y": 296,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.328px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.328px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.15",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "One",
- "rect": {
- "x": 60,
- "y": 317,
- "w": 30,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- },
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 501,
- "y": 296,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.328px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.328px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "Two",
- "rect": {
- "x": 521,
- "y": 317,
- "w": 29,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- },
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 963,
- "y": 296,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.344px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.344px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "Three",
- "rect": {
- "x": 983,
- "y": 317,
- "w": 42,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- },
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 40,
- "y": 580,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.328px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.328px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "Four",
- "rect": {
- "x": 60,
- "y": 601,
- "w": 33,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- },
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 501,
- "y": 580,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.328px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.328px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "Five",
- "rect": {
- "x": 521,
- "y": 601,
- "w": 30,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- },
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 963,
- "y": 580,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.344px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.344px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "Six",
- "rect": {
- "x": 983,
- "y": 601,
- "w": 22,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- }
- ]
- }
- ]
- },
- "diff": [
- {
- "path": "section > div[0] > div[0]::before",
- "prop": "opacity",
- "before": "0.85",
- "after": "0.15"
- }
- ]
-}
diff --git a/docs/research/127.0.0.1/sections/t-tiles.json b/docs/research/127.0.0.1/sections/t-tiles.json
deleted file mode 100644
index ae10468..0000000
--- a/docs/research/127.0.0.1/sections/t-tiles.json
+++ /dev/null
@@ -1,666 +0,0 @@
-{
- "url": "http://127.0.0.1:8899/",
- "viewport": "pc",
- "generatedAt": "2026-07-21T20:33:54.245Z",
- "selector": "#one",
- "tree": {
- "tag": "section",
- "classes": null,
- "text": null,
- "rect": {
- "x": 0,
- "y": 236,
- "w": 1440,
- "h": 664
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(0, 0, 0)",
- "textAlign": "start",
- "backgroundColor": "rgb(245, 245, 245)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "60px",
- "paddingRight": "40px",
- "paddingBottom": "60px",
- "paddingLeft": "40px",
- "width": "1360px",
- "height": "544px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(0, 0, 0)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 1,
- "children": [
- {
- "tag": "div",
- "classes": "tiles",
- "text": null,
- "rect": {
- "x": 40,
- "y": 296,
- "w": 1360,
- "h": 544
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(0, 0, 0)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "width": "1360px",
- "height": "544px",
- "display": "grid",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gap": "24px",
- "rowGap": "24px",
- "columnGap": "24px",
- "gridTemplateColumns": "437.328px 437.328px 437.344px",
- "gridTemplateRows": "260px 260px",
- "gridAutoFlow": "row",
- "borderColor": "rgb(0, 0, 0)",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 6,
- "children": [
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 40,
- "y": 296,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.328px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.328px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "One",
- "rect": {
- "x": 60,
- "y": 317,
- "w": 30,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- },
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 501,
- "y": 296,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.328px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.328px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "Two",
- "rect": {
- "x": 521,
- "y": 317,
- "w": 29,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- },
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 963,
- "y": 296,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.344px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.344px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "Three",
- "rect": {
- "x": 983,
- "y": 317,
- "w": 42,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- },
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 40,
- "y": 580,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.328px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.328px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "Four",
- "rect": {
- "x": 60,
- "y": 601,
- "w": 33,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- },
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 501,
- "y": 580,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.328px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.328px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "Five",
- "rect": {
- "x": 521,
- "y": 601,
- "w": 30,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- },
- {
- "tag": "div",
- "classes": "tile",
- "text": null,
- "rect": {
- "x": 963,
- "y": 580,
- "w": 437,
- "h": 260
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundColor": "rgb(102, 102, 102)",
- "backgroundPosition": "0% 0%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px",
- "width": "397.344px",
- "height": "220px",
- "display": "block",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "overflow": "hidden",
- "overflowX": "hidden",
- "overflowY": "hidden",
- "position": "relative",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "pseudo": {
- "::before": {
- "content": "\"\"",
- "width": "437.344px",
- "height": "260px",
- "backgroundColor": "rgb(24, 191, 239)",
- "position": "absolute",
- "opacity": "0.85",
- "display": "block",
- "borderColor": "rgb(255, 255, 255)",
- "zIndex": "1",
- "transition": "opacity 2.5s"
- }
- },
- "childCount": 1,
- "children": [
- {
- "tag": "span",
- "classes": null,
- "text": "Six",
- "rect": {
- "x": 983,
- "y": 601,
- "w": 22,
- "h": 16
- },
- "styles": {
- "fontSize": "16px",
- "fontWeight": "400",
- "fontFamily": "system-ui",
- "color": "rgb(255, 255, 255)",
- "textAlign": "start",
- "backgroundPosition": "0% 0%",
- "display": "inline",
- "flexDirection": "row",
- "flexWrap": "nowrap",
- "gridAutoFlow": "row",
- "borderColor": "rgb(255, 255, 255)",
- "position": "relative",
- "zIndex": "2",
- "opacity": "1",
- "transition": "all",
- "objectFit": "fill",
- "objectPosition": "50% 50%",
- "textOverflow": "clip",
- "order": "0",
- "flexGrow": "0",
- "flexShrink": "1"
- },
- "childCount": 0,
- "children": []
- }
- ]
- }
- ]
- }
- ]
- }
-}
diff --git a/scripts/extract/assets.mjs b/scripts/extract/assets.mjs
index 476cd82..9e16f9d 100644
--- a/scripts/extract/assets.mjs
+++ b/scripts/extract/assets.mjs
@@ -61,6 +61,22 @@ const found = await page.evaluate(() => {
height: s.getAttribute("height") || s.getBoundingClientRect().height,
context: (s.closest("a,button")?.textContent || s.parentElement?.className || "").toString().trim().slice(0, 60),
})),
+ // Rasters referenced from inside inline SVG (<image href>, <pattern><image>).
+ // These are invisible to an <img> scan, yet sites use them for full-size
+ // screenshots — miss one and a whole section renders empty.
+ svgImages: [...document.querySelectorAll("image")]
+ .map((im) => {
+ const href = im.getAttribute("href") || im.getAttribute("xlink:href");
+ if (!href || href.startsWith("data:")) return null;
+ const r = im.getBoundingClientRect();
+ return {
+ url: new URL(href, location.href).href,
+ renderedWidth: Math.round(r.width),
+ renderedHeight: Math.round(r.height),
+ insidePattern: !!im.closest("pattern"),
+ };
+ })
+ .filter(Boolean),
seo: {
favicons: [...document.querySelectorAll('link[rel*="icon"]')].map((l) => ({ href: l.href, sizes: l.sizes?.toString() || "" })),
ogImage: document.querySelector('meta[property="og:image"]')?.content || null,
@@ -133,6 +149,7 @@ if (doDownload) {
const jobs = [
...found.images.map((i) => ({ url: i.src, kind: "image" })),
...found.backgroundImages.map((b) => ({ url: b.url, kind: "image" })),
+ ...found.svgImages.map((b) => ({ url: b.url, kind: "image" })),
...found.videos.flatMap((v) => [v.src && { url: v.src, kind: "video" }, v.poster && { url: v.poster, kind: "image" }].filter(Boolean)),
...found.seo.favicons.map((f) => ({ url: f.href, kind: "seo" })),
...(found.seo.ogImage ? [{ url: found.seo.ogImage, kind: "seo" }] : []),
@@ -148,6 +165,7 @@ if (doDownload) {
const localFor = (remote) => manifest.find((m) => m.remote === remote)?.local || null;
found.images.forEach((i) => (i.local = localFor(i.src)));
found.backgroundImages.forEach((b) => (b.local = localFor(b.url)));
+found.svgImages.forEach((b) => (b.local = localFor(b.url)));
found.videos.forEach((v) => {
v.local = localFor(v.src);
v.posterLocal = localFor(v.poster);
@@ -162,7 +180,7 @@ writeJson(`docs/research/${host}/assets.json`, {
const okCount = manifest.filter((m) => m.ok).length;
const failCount = manifest.filter((m) => !m.ok).length;
console.log(
- `Images: ${found.images.length} · BG images: ${found.backgroundImages.length} · Videos: ${found.videos.length} · SVGs: ${found.inlineSvgs.length} · Fonts: ${found.fonts.length}` +
+ `Images: ${found.images.length} · BG images: ${found.backgroundImages.length} · SVG rasters: ${found.svgImages.length} · Videos: ${found.videos.length} · SVGs: ${found.inlineSvgs.length} · Fonts: ${found.fonts.length}` +
(doDownload ? ` · Downloaded: ${okCount} ok, ${failCount} failed` : " · (download skipped)")
);
if (failCount > 0) console.log("Failed downloads listed in assets.json — retry or fetch manually.");
diff --git a/scripts/extract/canvas.mjs b/scripts/extract/canvas.mjs
index c5a9ef3..e1b08d3 100644
--- a/scripts/extract/canvas.mjs
+++ b/scripts/extract/canvas.mjs
@@ -9,8 +9,8 @@
// animated canvas → a looping .webm recorded from the live page, drop it in
// as <video autoplay loop muted playsinline>
//
-// The recording isolates the canvas (pins it to a 1:1 viewport, hides
-// everything else) so the file contains the artwork and nothing else.
+// Recording uses canvas.captureStream(), so the file holds the canvas's own
+// pixels only — no page chrome, no page-load frames before the artwork appears.
//
// Usage:
// node scripts/extract/canvas.mjs <url> [--seconds 6] [--index 0] [--all]
@@ -18,7 +18,7 @@
// + docs/research/<host>/canvas.json
import { chromium } from "playwright";
import { createHash } from "node:crypto";
-import { mkdirSync, renameSync, readdirSync, rmSync, writeFileSync } from "node:fs";
+import { mkdirSync, writeFileSync } from "node:fs";
import { VIEWPORTS, hostOf, writeJson, parseArgs } from "../lib.mjs";
const args = parseArgs(process.argv.slice(2));
@@ -28,7 +28,6 @@ if (!url) {
process.exit(1);
}
const SECONDS = Number(args.seconds ?? 6);
-const TMP = "temp/canvas-rec";
// ── 1. Inventory every canvas on the page ─────────────────────────────
const browser = await chromium.launch();
@@ -89,45 +88,64 @@ for (const t of targets) {
await ctx.close();
// ── 3. Record the animated ones ───────────────────────────────────────
-// Isolating the canvas keeps the recording free of surrounding page chrome.
-const ISOLATE = `(index) => {
+// Record the canvas's own output stream rather than the viewport. Playwright's
+// recordVideo starts when the context opens, so it always captures the page load
+// and pre-isolation chrome ahead of the artwork; captureStream() yields exactly
+// the canvas pixels, starting exactly when we say.
+const CAPTURE = `async (index, ms) => {
const c = document.querySelectorAll("canvas")[index];
- if (!c) return null;
- const bg = getComputedStyle(document.body).backgroundColor;
- document.documentElement.style.background = bg;
- document.body.style.cssText = "margin:0;padding:0;overflow:hidden;background:" + bg;
- for (const el of document.body.querySelectorAll("*")) {
- if (el !== c && !el.contains(c)) el.style.visibility = "hidden";
- }
- c.style.cssText = "position:fixed;top:0;left:0;width:100vw;height:100vh;visibility:visible;z-index:2147483647";
- return true;
+ if (!c || typeof c.captureStream !== "function") return null;
+ const stream = c.captureStream(30);
+ const types = ["video/webm;codecs=vp9", "video/webm;codecs=vp8", "video/webm"];
+ const mimeType = types.find((t) => MediaRecorder.isTypeSupported(t));
+ if (!mimeType) return null;
+ const rec = new MediaRecorder(stream, { mimeType, videoBitsPerSecond: 4_000_000 });
+ const chunks = [];
+ rec.ondataavailable = (e) => { if (e.data && e.data.size) chunks.push(e.data); };
+ const stopped = new Promise((r) => { rec.onstop = r; });
+ rec.start();
+ await new Promise((r) => setTimeout(r, ms));
+ rec.stop();
+ await stopped;
+ const bytes = new Uint8Array(await new Blob(chunks, { type: "video/webm" }).arrayBuffer());
+ let bin = "";
+ const CH = 0x8000;
+ for (let i = 0; i < bytes.length; i += CH) bin += String.fromCharCode.apply(null, bytes.subarray(i, i + CH));
+ return btoa(bin);
}`;
for (const t of targets.filter((x) => x.animated)) {
- rmSync(TMP, { recursive: true, force: true });
- mkdirSync(TMP, { recursive: true });
- const size = { width: t.cssWidth || 700, height: t.cssHeight || 700 };
- ctx = await browser.newContext({ viewport: size, recordVideo: { dir: TMP, size } });
+ // The page must render at a width where the canvas is actually visible —
+ // responsive rules commonly hide hero artwork below the `lg` breakpoint.
+ ctx = await browser.newContext({ viewport: VIEWPORTS.pc });
page = await ctx.newPage();
await page.goto(url, { waitUntil: "load", timeout: 60000 });
await page.waitForTimeout(3000);
- const ok = await page.evaluate(`(${ISOLATE})(${t.index})`);
- if (!ok) {
- console.error(` canvas[${t.index}] vanished before recording — skipped`);
- await ctx.close();
- continue;
- }
- await page.waitForTimeout(SECONDS * 1000);
- await ctx.close(); // finalizes the video file
+ const loc = page.locator("canvas").nth(t.index);
+ await loc.scrollIntoViewIfNeeded().catch(() => {});
+ await page.waitForTimeout(800); // let it paint before the first frame
- const file = readdirSync(TMP).find((f) => f.endsWith(".webm"));
- if (file) {
+ const b64 = await page.evaluate(`(${CAPTURE})(${t.index}, ${SECONDS * 1000})`);
+ await ctx.close();
+
+ if (b64) {
mkdirSync("public/videos", { recursive: true });
t.output = `public/videos/canvas-${t.index}.webm`;
- renameSync(`${TMP}/${file}`, t.output);
+ writeFileSync(t.output, Buffer.from(b64, "base64"));
t.embedAs = "video";
t.recordedSeconds = SECONDS;
- console.error(` ✓ ${t.output} (${SECONDS}s loop)`);
+ console.error(` ✓ ${t.output} (${SECONDS}s loop, canvas stream)`);
+ } else {
+ console.error(` canvas[${t.index}] could not be stream-captured — falling back to a still PNG`);
+ const ctxF = await browser.newContext({ viewport: VIEWPORTS.pc });
+ const pF = await ctxF.newPage();
+ await pF.goto(url, { waitUntil: "load", timeout: 60000 });
+ await pF.waitForTimeout(3000);
+ mkdirSync("public/images", { recursive: true });
+ t.output = `public/images/canvas-${t.index}.png`;
+ await pF.locator("canvas").nth(t.index).screenshot({ path: t.output }).catch(() => (t.output = null));
+ t.embedAs = t.output ? "img" : null;
+ await ctxF.close();
}
// a poster frame keeps the first paint from being blank
const ctx2 = await browser.newContext({ viewport: VIEWPORTS.pc });
@@ -142,7 +160,6 @@ for (const t of targets.filter((x) => x.animated)) {
await ctx2.close();
}
-rmSync(TMP, { recursive: true, force: true });
await browser.close();
writeJson(`docs/research/${hostOf(url)}/canvas.json`, { url, generatedAt: new Date().toISOString(), canvases: inventory });
diff --git a/scripts/lib.mjs b/scripts/lib.mjs
index 51a5570..a328e71 100644
--- a/scripts/lib.mjs
+++ b/scripts/lib.mjs
@@ -45,7 +45,11 @@ export function writeJson(path, data) {
// viewports used to pay the launch three times — now they pay it once.
// ---------------------------------------------------------------------------
-let _browser = null;
+// Memoise the launch *promise*, not the resolved browser. Concurrent callers
+// (forEachViewport opens three contexts at once) would otherwise all observe a
+// null browser and each launch their own Chromium — closeBrowser() then closes
+// only the last one and the orphans keep the Node event loop alive forever.
+let _browserPromise = null;
const CONTEXT_OPTS = {
userAgent:
@@ -53,18 +57,18 @@ const CONTEXT_OPTS = {
deviceScaleFactor: 1,
};
-export async function getBrowser() {
- if (!_browser) _browser = await chromium.launch({ headless: true });
- return _browser;
+export function getBrowser() {
+ if (!_browserPromise) _browserPromise = chromium.launch({ headless: true });
+ return _browserPromise;
}
// Every script must call this before exiting — the browser process keeps the
// Node event loop alive otherwise.
export async function closeBrowser() {
- if (_browser) {
- await _browser.close();
- _browser = null;
- }
+ if (!_browserPromise) return;
+ const pending = _browserPromise;
+ _browserPromise = null;
+ await (await pending).close();
}
// Lazy-loading detection: count IntersectionObservers the page constructs, so
@@ -239,11 +243,24 @@ export async function freezePage(page) {
content:
"*,*::before,*::after{animation:none!important;transition:none!important;caret-color:transparent!important}",
});
- await page.evaluate(() => {
- document.querySelectorAll("video").forEach((v) => {
- v.pause();
- v.currentTime = 0;
- });
+ // Park videos on a frame that actually has content. Seeking to 0 lands on the
+ // first encoded frame, which for a screen recording is often blank — that
+ // renders as an empty box and costs the section real diff points.
+ await page.evaluate(async () => {
+ const vids = [...document.querySelectorAll("video")];
+ await Promise.all(
+ vids.map(
+ (v) =>
+ new Promise((resolve) => {
+ v.pause();
+ const target = Number.isFinite(v.duration) && v.duration > 1 ? 1 : 0;
+ if (Math.abs(v.currentTime - target) < 0.05) return resolve();
+ v.addEventListener("seeked", () => resolve(), { once: true });
+ v.currentTime = target;
+ setTimeout(resolve, 1000); // don't hang on a video that won't seek
+ })
+ )
+ );
});
}