Skip to content

The design language that makes your AI harness better at design.

JavaScript

Sync generated provider output

github-actions[bot]c0d50e36da52
diff --git a/.agents/skills/impeccable/scripts/live-browser.js b/.agents/skills/impeccable/scripts/live-browser.js
index 3cbdaceb1..bc71d8e5a 100644
--- a/.agents/skills/impeccable/scripts/live-browser.js
+++ b/.agents/skills/impeccable/scripts/live-browser.js
@@ -152,6 +152,7 @@
let scrollLockTargetY = null;
let scrollLockRaf = null;
let scrollLockAbort = null;
+ const SCROLL_ANCHOR_LOCK_ID = 'impeccable-scroll-anchor-lock';
// Dedicated key for scroll position - SEPARATE from LS_KEY so that
// saveSession's state updates don't clobber a carefully-captured scrollY.
@@ -5815,10 +5816,22 @@
try { history.scrollRestoration = 'manual'; } catch {}
- const prevHtmlAnchor = document.documentElement.style.overflowAnchor;
- const prevBodyAnchor = document.body.style.overflowAnchor;
- document.documentElement.style.overflowAnchor = 'none';
- document.body.style.overflowAnchor = 'none';
+ // Suppress the browser's scroll-anchoring on the scroll root so it can't
+ // fight our manual scroll correction. Apply this as a stylesheet rule, not
+ // as inline `style` on <html>/<body>: those elements are server-rendered by
+ // frameworks like Next.js App Router, and mutating their inline style makes
+ // React 19 report a hydration mismatch on the next Fast-Refresh re-render.
+ // A <style> rule has the same computed effect without touching any hydrated
+ // element's attributes. Like the inline version, it is recreated on every
+ // startScrollLock call, so reload survival (driven by the persisted scroll
+ // key) is unaffected.
+ let anchorLockStyle = document.getElementById(SCROLL_ANCHOR_LOCK_ID);
+ if (!anchorLockStyle) {
+ anchorLockStyle = document.createElement('style');
+ anchorLockStyle.id = SCROLL_ANCHOR_LOCK_ID;
+ anchorLockStyle.textContent = 'html,body{overflow-anchor:none !important;}';
+ (document.head || document.documentElement).appendChild(anchorLockStyle);
+ }
const correct = (why) => {
scrollLockRaf = null;
@@ -5853,8 +5866,7 @@
scrollLockAbort = new AbortController();
scrollLockAbort.signal.addEventListener('abort', () => {
- document.documentElement.style.overflowAnchor = prevHtmlAnchor;
- document.body.style.overflowAnchor = prevBodyAnchor;
+ document.getElementById(SCROLL_ANCHOR_LOCK_ID)?.remove();
}, { once: true });
const sig = { signal: scrollLockAbort.signal };
// Track whether the most recent scroll came from a user gesture. We
diff --git a/.claude/skills/impeccable/scripts/live-browser.js b/.claude/skills/impeccable/scripts/live-browser.js
index 3cbdaceb1..bc71d8e5a 100644
--- a/.claude/skills/impeccable/scripts/live-browser.js
+++ b/.claude/skills/impeccable/scripts/live-browser.js
@@ -152,6 +152,7 @@
let scrollLockTargetY = null;
let scrollLockRaf = null;
let scrollLockAbort = null;
+ const SCROLL_ANCHOR_LOCK_ID = 'impeccable-scroll-anchor-lock';
// Dedicated key for scroll position - SEPARATE from LS_KEY so that
// saveSession's state updates don't clobber a carefully-captured scrollY.
@@ -5815,10 +5816,22 @@
try { history.scrollRestoration = 'manual'; } catch {}
- const prevHtmlAnchor = document.documentElement.style.overflowAnchor;
- const prevBodyAnchor = document.body.style.overflowAnchor;
- document.documentElement.style.overflowAnchor = 'none';
- document.body.style.overflowAnchor = 'none';
+ // Suppress the browser's scroll-anchoring on the scroll root so it can't
+ // fight our manual scroll correction. Apply this as a stylesheet rule, not
+ // as inline `style` on <html>/<body>: those elements are server-rendered by
+ // frameworks like Next.js App Router, and mutating their inline style makes
+ // React 19 report a hydration mismatch on the next Fast-Refresh re-render.
+ // A <style> rule has the same computed effect without touching any hydrated
+ // element's attributes. Like the inline version, it is recreated on every
+ // startScrollLock call, so reload survival (driven by the persisted scroll
+ // key) is unaffected.
+ let anchorLockStyle = document.getElementById(SCROLL_ANCHOR_LOCK_ID);
+ if (!anchorLockStyle) {
+ anchorLockStyle = document.createElement('style');
+ anchorLockStyle.id = SCROLL_ANCHOR_LOCK_ID;
+ anchorLockStyle.textContent = 'html,body{overflow-anchor:none !important;}';
+ (document.head || document.documentElement).appendChild(anchorLockStyle);
+ }
const correct = (why) => {
scrollLockRaf = null;
@@ -5853,8 +5866,7 @@
scrollLockAbort = new AbortController();
scrollLockAbort.signal.addEventListener('abort', () => {
- document.documentElement.style.overflowAnchor = prevHtmlAnchor;
- document.body.style.overflowAnchor = prevBodyAnchor;
+ document.getElementById(SCROLL_ANCHOR_LOCK_ID)?.remove();
}, { once: true });
const sig = { signal: scrollLockAbort.signal };
// Track whether the most recent scroll came from a user gesture. We
diff --git a/.cursor/skills/impeccable/scripts/live-browser.js b/.cursor/skills/impeccable/scripts/live-browser.js
index 3cbdaceb1..bc71d8e5a 100644
--- a/.cursor/skills/impeccable/scripts/live-browser.js
+++ b/.cursor/skills/impeccable/scripts/live-browser.js
@@ -152,6 +152,7 @@
let scrollLockTargetY = null;
let scrollLockRaf = null;
let scrollLockAbort = null;
+ const SCROLL_ANCHOR_LOCK_ID = 'impeccable-scroll-anchor-lock';
// Dedicated key for scroll position - SEPARATE from LS_KEY so that
// saveSession's state updates don't clobber a carefully-captured scrollY.
@@ -5815,10 +5816,22 @@
try { history.scrollRestoration = 'manual'; } catch {}
- const prevHtmlAnchor = document.documentElement.style.overflowAnchor;
- const prevBodyAnchor = document.body.style.overflowAnchor;
- document.documentElement.style.overflowAnchor = 'none';
- document.body.style.overflowAnchor = 'none';
+ // Suppress the browser's scroll-anchoring on the scroll root so it can't
+ // fight our manual scroll correction. Apply this as a stylesheet rule, not
+ // as inline `style` on <html>/<body>: those elements are server-rendered by
+ // frameworks like Next.js App Router, and mutating their inline style makes
+ // React 19 report a hydration mismatch on the next Fast-Refresh re-render.
+ // A <style> rule has the same computed effect without touching any hydrated
+ // element's attributes. Like the inline version, it is recreated on every
+ // startScrollLock call, so reload survival (driven by the persisted scroll
+ // key) is unaffected.
+ let anchorLockStyle = document.getElementById(SCROLL_ANCHOR_LOCK_ID);
+ if (!anchorLockStyle) {
+ anchorLockStyle = document.createElement('style');
+ anchorLockStyle.id = SCROLL_ANCHOR_LOCK_ID;
+ anchorLockStyle.textContent = 'html,body{overflow-anchor:none !important;}';
+ (document.head || document.documentElement).appendChild(anchorLockStyle);
+ }
const correct = (why) => {
scrollLockRaf = null;
@@ -5853,8 +5866,7 @@
scrollLockAbort = new AbortController();
scrollLockAbort.signal.addEventListener('abort', () => {
- document.documentElement.style.overflowAnchor = prevHtmlAnchor;
- document.body.style.overflowAnchor = prevBodyAnchor;
+ document.getElementById(SCROLL_ANCHOR_LOCK_ID)?.remove();
}, { once: true });
const sig = { signal: scrollLockAbort.signal };
// Track whether the most recent scroll came from a user gesture. We
diff --git a/.gemini/skills/impeccable/scripts/live-browser.js b/.gemini/skills/impeccable/scripts/live-browser.js
index 3cbdaceb1..bc71d8e5a 100644
--- a/.gemini/skills/impeccable/scripts/live-browser.js
+++ b/.gemini/skills/impeccable/scripts/live-browser.js
@@ -152,6 +152,7 @@
let scrollLockTargetY = null;
let scrollLockRaf = null;
let scrollLockAbort = null;
+ const SCROLL_ANCHOR_LOCK_ID = 'impeccable-scroll-anchor-lock';
// Dedicated key for scroll position - SEPARATE from LS_KEY so that
// saveSession's state updates don't clobber a carefully-captured scrollY.
@@ -5815,10 +5816,22 @@
try { history.scrollRestoration = 'manual'; } catch {}
- const prevHtmlAnchor = document.documentElement.style.overflowAnchor;
- const prevBodyAnchor = document.body.style.overflowAnchor;
- document.documentElement.style.overflowAnchor = 'none';
- document.body.style.overflowAnchor = 'none';
+ // Suppress the browser's scroll-anchoring on the scroll root so it can't
+ // fight our manual scroll correction. Apply this as a stylesheet rule, not
+ // as inline `style` on <html>/<body>: those elements are server-rendered by
+ // frameworks like Next.js App Router, and mutating their inline style makes
+ // React 19 report a hydration mismatch on the next Fast-Refresh re-render.
+ // A <style> rule has the same computed effect without touching any hydrated
+ // element's attributes. Like the inline version, it is recreated on every
+ // startScrollLock call, so reload survival (driven by the persisted scroll
+ // key) is unaffected.
+ let anchorLockStyle = document.getElementById(SCROLL_ANCHOR_LOCK_ID);
+ if (!anchorLockStyle) {
+ anchorLockStyle = document.createElement('style');
+ anchorLockStyle.id = SCROLL_ANCHOR_LOCK_ID;
+ anchorLockStyle.textContent = 'html,body{overflow-anchor:none !important;}';
+ (document.head || document.documentElement).appendChild(anchorLockStyle);
+ }
const correct = (why) => {
scrollLockRaf = null;
@@ -5853,8 +5866,7 @@
scrollLockAbort = new AbortController();
scrollLockAbort.signal.addEventListener('abort', () => {
- document.documentElement.style.overflowAnchor = prevHtmlAnchor;
- document.body.style.overflowAnchor = prevBodyAnchor;
+ document.getElementById(SCROLL_ANCHOR_LOCK_ID)?.remove();
}, { once: true });
const sig = { signal: scrollLockAbort.signal };
// Track whether the most recent scroll came from a user gesture. We
diff --git a/.github/skills/impeccable/scripts/live-browser.js b/.github/skills/impeccable/scripts/live-browser.js
index 3cbdaceb1..bc71d8e5a 100644
--- a/.github/skills/impeccable/scripts/live-browser.js
+++ b/.github/skills/impeccable/scripts/live-browser.js
@@ -152,6 +152,7 @@
let scrollLockTargetY = null;
let scrollLockRaf = null;
let scrollLockAbort = null;
+ const SCROLL_ANCHOR_LOCK_ID = 'impeccable-scroll-anchor-lock';
// Dedicated key for scroll position - SEPARATE from LS_KEY so that
// saveSession's state updates don't clobber a carefully-captured scrollY.
@@ -5815,10 +5816,22 @@
try { history.scrollRestoration = 'manual'; } catch {}
- const prevHtmlAnchor = document.documentElement.style.overflowAnchor;
- const prevBodyAnchor = document.body.style.overflowAnchor;
- document.documentElement.style.overflowAnchor = 'none';
- document.body.style.overflowAnchor = 'none';
+ // Suppress the browser's scroll-anchoring on the scroll root so it can't
+ // fight our manual scroll correction. Apply this as a stylesheet rule, not
+ // as inline `style` on <html>/<body>: those elements are server-rendered by
+ // frameworks like Next.js App Router, and mutating their inline style makes
+ // React 19 report a hydration mismatch on the next Fast-Refresh re-render.
+ // A <style> rule has the same computed effect without touching any hydrated
+ // element's attributes. Like the inline version, it is recreated on every
+ // startScrollLock call, so reload survival (driven by the persisted scroll
+ // key) is unaffected.
+ let anchorLockStyle = document.getElementById(SCROLL_ANCHOR_LOCK_ID);
+ if (!anchorLockStyle) {
+ anchorLockStyle = document.createElement('style');
+ anchorLockStyle.id = SCROLL_ANCHOR_LOCK_ID;
+ anchorLockStyle.textContent = 'html,body{overflow-anchor:none !important;}';
+ (document.head || document.documentElement).appendChild(anchorLockStyle);
+ }
const correct = (why) => {
scrollLockRaf = null;
@@ -5853,8 +5866,7 @@
scrollLockAbort = new AbortController();
scrollLockAbort.signal.addEventListener('abort', () => {
- document.documentElement.style.overflowAnchor = prevHtmlAnchor;
- document.body.style.overflowAnchor = prevBodyAnchor;
+ document.getElementById(SCROLL_ANCHOR_LOCK_ID)?.remove();
}, { once: true });
const sig = { signal: scrollLockAbort.signal };
// Track whether the most recent scroll came from a user gesture. We
diff --git a/.kiro/skills/impeccable/scripts/live-browser.js b/.kiro/skills/impeccable/scripts/live-browser.js
index 3cbdaceb1..bc71d8e5a 100644
--- a/.kiro/skills/impeccable/scripts/live-browser.js
+++ b/.kiro/skills/impeccable/scripts/live-browser.js
@@ -152,6 +152,7 @@
let scrollLockTargetY = null;
let scrollLockRaf = null;
let scrollLockAbort = null;
+ const SCROLL_ANCHOR_LOCK_ID = 'impeccable-scroll-anchor-lock';
// Dedicated key for scroll position - SEPARATE from LS_KEY so that
// saveSession's state updates don't clobber a carefully-captured scrollY.
@@ -5815,10 +5816,22 @@
try { history.scrollRestoration = 'manual'; } catch {}
- const prevHtmlAnchor = document.documentElement.style.overflowAnchor;
- const prevBodyAnchor = document.body.style.overflowAnchor;
- document.documentElement.style.overflowAnchor = 'none';
- document.body.style.overflowAnchor = 'none';
+ // Suppress the browser's scroll-anchoring on the scroll root so it can't
+ // fight our manual scroll correction. Apply this as a stylesheet rule, not
+ // as inline `style` on <html>/<body>: those elements are server-rendered by
+ // frameworks like Next.js App Router, and mutating their inline style makes
+ // React 19 report a hydration mismatch on the next Fast-Refresh re-render.
+ // A <style> rule has the same computed effect without touching any hydrated
+ // element's attributes. Like the inline version, it is recreated on every
+ // startScrollLock call, so reload survival (driven by the persisted scroll
+ // key) is unaffected.
+ let anchorLockStyle = document.getElementById(SCROLL_ANCHOR_LOCK_ID);
+ if (!anchorLockStyle) {
+ anchorLockStyle = document.createElement('style');
+ anchorLockStyle.id = SCROLL_ANCHOR_LOCK_ID;
+ anchorLockStyle.textContent = 'html,body{overflow-anchor:none !important;}';
+ (document.head || document.documentElement).appendChild(anchorLockStyle);
+ }
const correct = (why) => {
scrollLockRaf = null;
@@ -5853,8 +5866,7 @@
scrollLockAbort = new AbortController();
scrollLockAbort.signal.addEventListener('abort', () => {
- document.documentElement.style.overflowAnchor = prevHtmlAnchor;
- document.body.style.overflowAnchor = prevBodyAnchor;
+ document.getElementById(SCROLL_ANCHOR_LOCK_ID)?.remove();
}, { once: true });
const sig = { signal: scrollLockAbort.signal };
// Track whether the most recent scroll came from a user gesture. We
diff --git a/.opencode/skills/impeccable/scripts/live-browser.js b/.opencode/skills/impeccable/scripts/live-browser.js
index 3cbdaceb1..bc71d8e5a 100644
--- a/.opencode/skills/impeccable/scripts/live-browser.js
+++ b/.opencode/skills/impeccable/scripts/live-browser.js
@@ -152,6 +152,7 @@
let scrollLockTargetY = null;
let scrollLockRaf = null;
let scrollLockAbort = null;
+ const SCROLL_ANCHOR_LOCK_ID = 'impeccable-scroll-anchor-lock';
// Dedicated key for scroll position - SEPARATE from LS_KEY so that
// saveSession's state updates don't clobber a carefully-captured scrollY.
@@ -5815,10 +5816,22 @@
try { history.scrollRestoration = 'manual'; } catch {}
- const prevHtmlAnchor = document.documentElement.style.overflowAnchor;
- const prevBodyAnchor = document.body.style.overflowAnchor;
- document.documentElement.style.overflowAnchor = 'none';
- document.body.style.overflowAnchor = 'none';
+ // Suppress the browser's scroll-anchoring on the scroll root so it can't
+ // fight our manual scroll correction. Apply this as a stylesheet rule, not
+ // as inline `style` on <html>/<body>: those elements are server-rendered by
+ // frameworks like Next.js App Router, and mutating their inline style makes
+ // React 19 report a hydration mismatch on the next Fast-Refresh re-render.
+ // A <style> rule has the same computed effect without touching any hydrated
+ // element's attributes. Like the inline version, it is recreated on every
+ // startScrollLock call, so reload survival (driven by the persisted scroll
+ // key) is unaffected.
+ let anchorLockStyle = document.getElementById(SCROLL_ANCHOR_LOCK_ID);
+ if (!anchorLockStyle) {
+ anchorLockStyle = document.createElement('style');
+ anchorLockStyle.id = SCROLL_ANCHOR_LOCK_ID;
+ anchorLockStyle.textContent = 'html,body{overflow-anchor:none !important;}';
+ (document.head || document.documentElement).appendChild(anchorLockStyle);
+ }
const correct = (why) => {
scrollLockRaf = null;
@@ -5853,8 +5866,7 @@
scrollLockAbort = new AbortController();
scrollLockAbort.signal.addEventListener('abort', () => {
- document.documentElement.style.overflowAnchor = prevHtmlAnchor;
- document.body.style.overflowAnchor = prevBodyAnchor;
+ document.getElementById(SCROLL_ANCHOR_LOCK_ID)?.remove();
}, { once: true });
const sig = { signal: scrollLockAbort.signal };
// Track whether the most recent scroll came from a user gesture. We
diff --git a/.pi/skills/impeccable/scripts/live-browser.js b/.pi/skills/impeccable/scripts/live-browser.js
index 3cbdaceb1..bc71d8e5a 100644
--- a/.pi/skills/impeccable/scripts/live-browser.js
+++ b/.pi/skills/impeccable/scripts/live-browser.js
@@ -152,6 +152,7 @@
let scrollLockTargetY = null;
let scrollLockRaf = null;
let scrollLockAbort = null;
+ const SCROLL_ANCHOR_LOCK_ID = 'impeccable-scroll-anchor-lock';
// Dedicated key for scroll position - SEPARATE from LS_KEY so that
// saveSession's state updates don't clobber a carefully-captured scrollY.
@@ -5815,10 +5816,22 @@
try { history.scrollRestoration = 'manual'; } catch {}
- const prevHtmlAnchor = document.documentElement.style.overflowAnchor;
- const prevBodyAnchor = document.body.style.overflowAnchor;
- document.documentElement.style.overflowAnchor = 'none';
- document.body.style.overflowAnchor = 'none';
+ // Suppress the browser's scroll-anchoring on the scroll root so it can't
+ // fight our manual scroll correction. Apply this as a stylesheet rule, not
+ // as inline `style` on <html>/<body>: those elements are server-rendered by
+ // frameworks like Next.js App Router, and mutating their inline style makes
+ // React 19 report a hydration mismatch on the next Fast-Refresh re-render.
+ // A <style> rule has the same computed effect without touching any hydrated
+ // element's attributes. Like the inline version, it is recreated on every
+ // startScrollLock call, so reload survival (driven by the persisted scroll
+ // key) is unaffected.
+ let anchorLockStyle = document.getElementById(SCROLL_ANCHOR_LOCK_ID);
+ if (!anchorLockStyle) {
+ anchorLockStyle = document.createElement('style');
+ anchorLockStyle.id = SCROLL_ANCHOR_LOCK_ID;
+ anchorLockStyle.textContent = 'html,body{overflow-anchor:none !important;}';
+ (document.head || document.documentElement).appendChild(anchorLockStyle);
+ }
const correct = (why) => {
scrollLockRaf = null;
@@ -5853,8 +5866,7 @@
scrollLockAbort = new AbortController();
scrollLockAbort.signal.addEventListener('abort', () => {
- document.documentElement.style.overflowAnchor = prevHtmlAnchor;
- document.body.style.overflowAnchor = prevBodyAnchor;
+ document.getElementById(SCROLL_ANCHOR_LOCK_ID)?.remove();
}, { once: true });
const sig = { signal: scrollLockAbort.signal };
// Track whether the most recent scroll came from a user gesture. We
diff --git a/.qoder/skills/impeccable/scripts/live-browser.js b/.qoder/skills/impeccable/scripts/live-browser.js
index 3cbdaceb1..bc71d8e5a 100644
--- a/.qoder/skills/impeccable/scripts/live-browser.js
+++ b/.qoder/skills/impeccable/scripts/live-browser.js
@@ -152,6 +152,7 @@
let scrollLockTargetY = null;
let scrollLockRaf = null;
let scrollLockAbort = null;
+ const SCROLL_ANCHOR_LOCK_ID = 'impeccable-scroll-anchor-lock';
// Dedicated key for scroll position - SEPARATE from LS_KEY so that
// saveSession's state updates don't clobber a carefully-captured scrollY.
@@ -5815,10 +5816,22 @@
try { history.scrollRestoration = 'manual'; } catch {}
- const prevHtmlAnchor = document.documentElement.style.overflowAnchor;
- const prevBodyAnchor = document.body.style.overflowAnchor;
- document.documentElement.style.overflowAnchor = 'none';
- document.body.style.overflowAnchor = 'none';
+ // Suppress the browser's scroll-anchoring on the scroll root so it can't
+ // fight our manual scroll correction. Apply this as a stylesheet rule, not
+ // as inline `style` on <html>/<body>: those elements are server-rendered by
+ // frameworks like Next.js App Router, and mutating their inline style makes
+ // React 19 report a hydration mismatch on the next Fast-Refresh re-render.
+ // A <style> rule has the same computed effect without touching any hydrated
+ // element's attributes. Like the inline version, it is recreated on every
+ // startScrollLock call, so reload survival (driven by the persisted scroll
+ // key) is unaffected.
+ let anchorLockStyle = document.getElementById(SCROLL_ANCHOR_LOCK_ID);
+ if (!anchorLockStyle) {
+ anchorLockStyle = document.createElement('style');
+ anchorLockStyle.id = SCROLL_ANCHOR_LOCK_ID;
+ anchorLockStyle.textContent = 'html,body{overflow-anchor:none !important;}';
+ (document.head || document.documentElement).appendChild(anchorLockStyle);
+ }
const correct = (why) => {
scrollLockRaf = null;
@@ -5853,8 +5866,7 @@
scrollLockAbort = new AbortController();
scrollLockAbort.signal.addEventListener('abort', () => {
- document.documentElement.style.overflowAnchor = prevHtmlAnchor;
- document.body.style.overflowAnchor = prevBodyAnchor;
+ document.getElementById(SCROLL_ANCHOR_LOCK_ID)?.remove();
}, { once: true });
const sig = { signal: scrollLockAbort.signal };
// Track whether the most recent scroll came from a user gesture. We
diff --git a/.rovodev/skills/impeccable/scripts/live-browser.js b/.rovodev/skills/impeccable/scripts/live-browser.js
index 3cbdaceb1..bc71d8e5a 100644
--- a/.rovodev/skills/impeccable/scripts/live-browser.js
+++ b/.rovodev/skills/impeccable/scripts/live-browser.js
@@ -152,6 +152,7 @@
let scrollLockTargetY = null;
let scrollLockRaf = null;
let scrollLockAbort = null;
+ const SCROLL_ANCHOR_LOCK_ID = 'impeccable-scroll-anchor-lock';
// Dedicated key for scroll position - SEPARATE from LS_KEY so that
// saveSession's state updates don't clobber a carefully-captured scrollY.
@@ -5815,10 +5816,22 @@
try { history.scrollRestoration = 'manual'; } catch {}
- const prevHtmlAnchor = document.documentElement.style.overflowAnchor;
- const prevBodyAnchor = document.body.style.overflowAnchor;
- document.documentElement.style.overflowAnchor = 'none';
- document.body.style.overflowAnchor = 'none';
+ // Suppress the browser's scroll-anchoring on the scroll root so it can't
+ // fight our manual scroll correction. Apply this as a stylesheet rule, not
+ // as inline `style` on <html>/<body>: those elements are server-rendered by
+ // frameworks like Next.js App Router, and mutating their inline style makes
+ // React 19 report a hydration mismatch on the next Fast-Refresh re-render.
+ // A <style> rule has the same computed effect without touching any hydrated
+ // element's attributes. Like the inline version, it is recreated on every
+ // startScrollLock call, so reload survival (driven by the persisted scroll
+ // key) is unaffected.
+ let anchorLockStyle = document.getElementById(SCROLL_ANCHOR_LOCK_ID);
+ if (!anchorLockStyle) {
+ anchorLockStyle = document.createElement('style');
+ anchorLockStyle.id = SCROLL_ANCHOR_LOCK_ID;
+ anchorLockStyle.textContent = 'html,body{overflow-anchor:none !important;}';
+ (document.head || document.documentElement).appendChild(anchorLockStyle);
+ }
const correct = (why) => {
scrollLockRaf = null;
@@ -5853,8 +5866,7 @@
scrollLockAbort = new AbortController();
scrollLockAbort.signal.addEventListener('abort', () => {
- document.documentElement.style.overflowAnchor = prevHtmlAnchor;
- document.body.style.overflowAnchor = prevBodyAnchor;
+ document.getElementById(SCROLL_ANCHOR_LOCK_ID)?.remove();
}, { once: true });
const sig = { signal: scrollLockAbort.signal };
// Track whether the most recent scroll came from a user gesture. We
diff --git a/.trae-cn/skills/impeccable/scripts/live-browser.js b/.trae-cn/skills/impeccable/scripts/live-browser.js
index 3cbdaceb1..bc71d8e5a 100644
--- a/.trae-cn/skills/impeccable/scripts/live-browser.js
+++ b/.trae-cn/skills/impeccable/scripts/live-browser.js
@@ -152,6 +152,7 @@
let scrollLockTargetY = null;
let scrollLockRaf = null;
let scrollLockAbort = null;
+ const SCROLL_ANCHOR_LOCK_ID = 'impeccable-scroll-anchor-lock';
// Dedicated key for scroll position - SEPARATE from LS_KEY so that
// saveSession's state updates don't clobber a carefully-captured scrollY.
@@ -5815,10 +5816,22 @@
try { history.scrollRestoration = 'manual'; } catch {}
- const prevHtmlAnchor = document.documentElement.style.overflowAnchor;
- const prevBodyAnchor = document.body.style.overflowAnchor;
- document.documentElement.style.overflowAnchor = 'none';
- document.body.style.overflowAnchor = 'none';
+ // Suppress the browser's scroll-anchoring on the scroll root so it can't
+ // fight our manual scroll correction. Apply this as a stylesheet rule, not
+ // as inline `style` on <html>/<body>: those elements are server-rendered by
+ // frameworks like Next.js App Router, and mutating their inline style makes
+ // React 19 report a hydration mismatch on the next Fast-Refresh re-render.
+ // A <style> rule has the same computed effect without touching any hydrated
+ // element's attributes. Like the inline version, it is recreated on every
+ // startScrollLock call, so reload survival (driven by the persisted scroll
+ // key) is unaffected.
+ let anchorLockStyle = document.getElementById(SCROLL_ANCHOR_LOCK_ID);
+ if (!anchorLockStyle) {
+ anchorLockStyle = document.createElement('style');
+ anchorLockStyle.id = SCROLL_ANCHOR_LOCK_ID;
+ anchorLockStyle.textContent = 'html,body{overflow-anchor:none !important;}';
+ (document.head || document.documentElement).appendChild(anchorLockStyle);
+ }
const correct = (why) => {
scrollLockRaf = null;
@@ -5853,8 +5866,7 @@
scrollLockAbort = new AbortController();
scrollLockAbort.signal.addEventListener('abort', () => {
- document.documentElement.style.overflowAnchor = prevHtmlAnchor;
- document.body.style.overflowAnchor = prevBodyAnchor;
+ document.getElementById(SCROLL_ANCHOR_LOCK_ID)?.remove();
}, { once: true });
const sig = { signal: scrollLockAbort.signal };
// Track whether the most recent scroll came from a user gesture. We
diff --git a/.trae/skills/impeccable/scripts/live-browser.js b/.trae/skills/impeccable/scripts/live-browser.js
index 3cbdaceb1..bc71d8e5a 100644
--- a/.trae/skills/impeccable/scripts/live-browser.js
+++ b/.trae/skills/impeccable/scripts/live-browser.js
@@ -152,6 +152,7 @@
let scrollLockTargetY = null;
let scrollLockRaf = null;
let scrollLockAbort = null;
+ const SCROLL_ANCHOR_LOCK_ID = 'impeccable-scroll-anchor-lock';
// Dedicated key for scroll position - SEPARATE from LS_KEY so that
// saveSession's state updates don't clobber a carefully-captured scrollY.
@@ -5815,10 +5816,22 @@
try { history.scrollRestoration = 'manual'; } catch {}
- const prevHtmlAnchor = document.documentElement.style.overflowAnchor;
- const prevBodyAnchor = document.body.style.overflowAnchor;
- document.documentElement.style.overflowAnchor = 'none';
- document.body.style.overflowAnchor = 'none';
+ // Suppress the browser's scroll-anchoring on the scroll root so it can't
+ // fight our manual scroll correction. Apply this as a stylesheet rule, not
+ // as inline `style` on <html>/<body>: those elements are server-rendered by
+ // frameworks like Next.js App Router, and mutating their inline style makes
+ // React 19 report a hydration mismatch on the next Fast-Refresh re-render.
+ // A <style> rule has the same computed effect without touching any hydrated
+ // element's attributes. Like the inline version, it is recreated on every
+ // startScrollLock call, so reload survival (driven by the persisted scroll
+ // key) is unaffected.
+ let anchorLockStyle = document.getElementById(SCROLL_ANCHOR_LOCK_ID);
+ if (!anchorLockStyle) {
+ anchorLockStyle = document.createElement('style');
+ anchorLockStyle.id = SCROLL_ANCHOR_LOCK_ID;
+ anchorLockStyle.textContent = 'html,body{overflow-anchor:none !important;}';
+ (document.head || document.documentElement).appendChild(anchorLockStyle);
+ }
const correct = (why) => {
scrollLockRaf = null;
@@ -5853,8 +5866,7 @@
scrollLockAbort = new AbortController();
scrollLockAbort.signal.addEventListener('abort', () => {
- document.documentElement.style.overflowAnchor = prevHtmlAnchor;
- document.body.style.overflowAnchor = prevBodyAnchor;
+ document.getElementById(SCROLL_ANCHOR_LOCK_ID)?.remove();
}, { once: true });
const sig = { signal: scrollLockAbort.signal };
// Track whether the most recent scroll came from a user gesture. We
diff --git a/plugin/skills/impeccable/scripts/live-browser.js b/plugin/skills/impeccable/scripts/live-browser.js
index 3cbdaceb1..bc71d8e5a 100644
--- a/plugin/skills/impeccable/scripts/live-browser.js
+++ b/plugin/skills/impeccable/scripts/live-browser.js
@@ -152,6 +152,7 @@
let scrollLockTargetY = null;
let scrollLockRaf = null;
let scrollLockAbort = null;
+ const SCROLL_ANCHOR_LOCK_ID = 'impeccable-scroll-anchor-lock';
// Dedicated key for scroll position - SEPARATE from LS_KEY so that
// saveSession's state updates don't clobber a carefully-captured scrollY.
@@ -5815,10 +5816,22 @@
try { history.scrollRestoration = 'manual'; } catch {}
- const prevHtmlAnchor = document.documentElement.style.overflowAnchor;
- const prevBodyAnchor = document.body.style.overflowAnchor;
- document.documentElement.style.overflowAnchor = 'none';
- document.body.style.overflowAnchor = 'none';
+ // Suppress the browser's scroll-anchoring on the scroll root so it can't
+ // fight our manual scroll correction. Apply this as a stylesheet rule, not
+ // as inline `style` on <html>/<body>: those elements are server-rendered by
+ // frameworks like Next.js App Router, and mutating their inline style makes
+ // React 19 report a hydration mismatch on the next Fast-Refresh re-render.
+ // A <style> rule has the same computed effect without touching any hydrated
+ // element's attributes. Like the inline version, it is recreated on every
+ // startScrollLock call, so reload survival (driven by the persisted scroll
+ // key) is unaffected.
+ let anchorLockStyle = document.getElementById(SCROLL_ANCHOR_LOCK_ID);
+ if (!anchorLockStyle) {
+ anchorLockStyle = document.createElement('style');
+ anchorLockStyle.id = SCROLL_ANCHOR_LOCK_ID;
+ anchorLockStyle.textContent = 'html,body{overflow-anchor:none !important;}';
+ (document.head || document.documentElement).appendChild(anchorLockStyle);
+ }
const correct = (why) => {
scrollLockRaf = null;
@@ -5853,8 +5866,7 @@
scrollLockAbort = new AbortController();
scrollLockAbort.signal.addEventListener('abort', () => {
- document.documentElement.style.overflowAnchor = prevHtmlAnchor;
- document.body.style.overflowAnchor = prevBodyAnchor;
+ document.getElementById(SCROLL_ANCHOR_LOCK_ID)?.remove();
}, { once: true });
const sig = { signal: scrollLockAbort.signal };
// Track whether the most recent scroll came from a user gesture. We