Skip to content

docs(comments): no comment claims the stylesheet lands in a host page - #269

Merged
sydevs-bot merged 8 commits into
mainfrom
claude/docs-264-css-scope-shadow
Oct 10, 2026
Merged

sydevs-bot merged 8 commits into
mainfrom
claude/docs-264-css-scope-shadow

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • No comment in the tree now says the built stylesheet lands in a host page. Ten files, one premise.
  • The scoping pass's own rationale is re-derived once: the prefix confines nothing, the collapse onto .sy-atlas is what survives fix(ui): host CSS without !important still restyles widget text #236.
  • One claim is a judgement, not a wording fix. It is in ## Open questions with a recommendation.

Change outline

The change is at claim level, so each view paraphrases what the comments now assert rather than listing edits. One claim per line.

Contract — the stated rationale for the scoping pass

scripts/postcss-scope-widget.mjs, the WHY (issue #91) block:

- the widget has no shadow boundary
- `vite-plugin-css-injected-by-js` appends the sheet to the HOST document's `<head>`
- it lands after the host's own sheets, so it wins style ties
- anything left at the top level restyles the page we are a guest on
- [first draft] the shell and Ladle put it on `<html class="sy-atlas">`, "where a
-   top-level selector repaints the page it is on" — true of the sheet, false of the
-   PREFIX, which is what the sentence was defending
- [first draft] the leak list: Preflight, generated utilities, the palette blocks, the
-   `@import`ed sheets — an enumeration of what escapes onto a host page, and nothing does
+ the embed is behind a shadow boundary (#236) and adopts this sheet into it,
+   so the sheet cannot reach a host page
+ the shell and Ladle put it on `<html class="sy-atlas">` — the DOCUMENT ROOT, so
+   `:where(.sy-atlas) :is(main)` matches exactly what `main` matched: the prefix
+   confines nothing in either build, and the page it would confine the sheet from is ours
+ what survives the boundary is the collapse, and it is load-bearing: `:root` matches
+   nothing inside a shadow root, so mapping the root selectors onto `.sy-atlas` is the
+   only thing that defines the theme tokens and the palette there, and the only thing
+   that lands Preflight's own `html`/`body` rules
+ why the prefix is still written on every rule: so the collapse and the keyframe
+   namespacing are total rather than selective, and so the gate can read the result
  (kept) the two measured leaks, re-dated to "while the sheet still landed in a host page"

scripts/assert-css-scoped.mjs, the header — the file #264 treated as the reference, and the one copy that already had the embed half right:

- it "proves the shipped CSS cannot restyle a host page"
- the two boundary-less builds are "where anything left at the top level wins style
-   conflicts and repaints the page around it", and the pass "confines every selector"
- that is "the weaker half of why the pass survives the boundary"
- "Preflight and the whole palette never apply to the EMBED at all" — too strong;
-   Preflight's `*` and element rules match inside a shadow root unrewritten
- the stray-.css note had "the host page would link that file"
+ it proves `postcss-scope-widget.mjs` reached every rule this repo ships
+ the same confinement paragraph as `postcss-scope-widget.mjs`, word for word
+ there is no weaker half: the collapse is the reason, and the gate reads the result
+   back out of the emitted bytes rather than trusting the pass
+ the collapse is what defines the tokens and the palette, and what lands Preflight's
+   own `html`/`body` rules
+ a stray .css asset is one nothing hands to `src/styles/sheet.ts`, so no root adopts it

src/components/AGENTS.md, the scoping bullet — the fourth copy, found by the docs-sync sweep:

- the shell and Ladle "still put it on `<html class="sy-atlas">`, and the pass is what
-   keeps those two honest"
+ the same correction, then a pointer: `postcss-scope-widget.mjs` owns the argument

src/styles/globals.css, the file header (7bc0a72): the operational paragraph leads, and one sentence names postcss-scope-widget.mjs as the argument's owner. No fourth restatement.

The host-head premise — the five sites #270 filed, plus the one review found

Each conclusion survives. Only the stated reason changes.

  src/styles/fonts.ts — why the font URL is resolved at runtime
- the stylesheet "is injected as a string into the host's <head>", and a url() resolves
-   against the DOCUMENT's base URL
+ the built sheet is adopted into the shadow root and appended to no `<head>` at all,
+   but a relative url() in it still resolves against the DOCUMENT's base URL
+ and the file's OWN `<style>` is named as the one sheet this repo really does put in
+   `document.head`, because a `@font-face` inside a shadow root is never applied

  src/components/molecules/List/List.tsx + List.test.tsx — the explicit list resets
- a host `li { list-style: disc }` "beats preflight's inherited reset and paints bullets
-   next to every card"
+ that hazard is unreachable: a host selector cannot match inside the shadow root, and
+   the two boundary-less builds have no host page
+ DECISION — the resets stay. What they still buy is independence from preflight, which
+   resets `ol, ul, menu` and not `li`: the suppression is stated at class level, and
+   `[&>li]:list-none` states it on the `<li>` instead of inheriting it

  src/styles/base.css — why the carousel theme is keyed on `.sy-carousel`
- "This stylesheet is injected into the HOST document", so theming `.swiper` reaches
-   straight into a host's carousels
+ `.swiper` is Swiper's own class, so theming it repaints every Swiper instance in the
+   widget rather than this one
+ the wider reason is kept as history, dated before #236

  docs/architecture.md — the build bullet
- "CSS is injected by JS … so the widget styles itself when embedded"
+ CSS travels with the JS, with an `injectCodeFunction` that hands each chunk to
+   `src/styles/sheet.ts`; each entry adopts it into the root it owns

  src/AGENTS.md — the px-not-rem rule (the higher-traffic twin of the @theme sentence)
- "The stylesheet lands in a host page, and a host that sets html { font-size: 62.5% }
-   rescales every rem"
+ a rem resolves against the host document's root font size from inside the shadow root
+   too, so the #238 hazard is unchanged and the reason is now true

Also corrected while there

scripts/postcss-scope-widget.mjs:65 attributed :host to "Tailwind 3.4's Preflight". The pin is 4.3.3, so the version is dropped rather than bumped — a version in a comment only goes stale again.

Preview

Nothing renders differently. The CSS diff is comments, which the minifier strips, so no emitted byte moves.

Test results

On a543454:

  • Lean gate: ✓ .claude/skills/pr-prep/check.sh — lint, typecheck, 1682 unit tests across 136 files
  • Comment lint: ✓ comment-lint.mjs — no banned phrasing added
  • Fingerprint: comment-fingerprint.mjs — 4 of 5 parsed files code-identical, 1 CODE CHANGED: List.test.tsx, whose test name carried the retired premise. Protected census grew, never shrank (K3 7→9, K4 9→10); no comment displaced. Markdown and CSS are not parsed by it.
  • #270's grep (injected into the HOST, HOST document's <head>, into the host's <head>, lands in a host page, appends our stylesheet) over src/ scripts/ docs/: no matches
  • Every ⚠ line survives, in all ten files (src/components/AGENTS.md 13→13, assert-css-scoped.mjs 2→2, fonts.ts 3→3). Every #91 breadcrumb survives; #236 is added in six files.

On 3310766, before the review commits:

  • Build: ✓ pnpm build, including assert:css (1176 rules confined, 62 @property allowlisted) and assert:maps. Not re-run since — every commit after it changes comment text, plus one test name. CI runs it.
  • Security review: ran on path match (src/styles/, scripts/[^/]*css); no findings, and the content trigger matched no added line

Manual verification

  1. Read each header fresh, as someone who never saw this diff, and check it answers "why does this pass still exist?" — globals.css and src/components/AGENTS.md deliberately send you to postcss-scope-widget.mjs for the argument, and nowhere else restates it.
  2. Confirm the collapse half reads strongly enough that the next maintainer does not delete the pass on the strength of the shadow boundary.
  3. List.tsx: check you agree the resets stay. The old reason is gone, and the one written in its place is weaker — see ## Open questions if you would rather delete the classes.

Open questions

The keyframe-namespacing rationale says a bare @keyframes fadeIn "would hijack any host animation of that name". It appears three times: scripts/postcss-scope-widget.mjs (the rewrite list), src/styles/globals.css:563, and verbatim in scripts/assert-css-scoped.mjs. Keyframe names in a sheet adopted into a shadow root are tree-scoped, so the embed cannot reach a host's animations, and the shell and Ladle have no host. The namespacing is still needed; the stated reason is not the reason.

The same shape sits next to it in assert-css-scoped.mjs:144-150: @font-face is exempted from the gate because "the font-family name is document-global, and the last definition wins", which it is — but a @font-face inside a shadow root is never applied at all (src/styles/sheet.ts:21-24), so the hazard it names is unreachable for the embed too. @property at :156 is the one of the three that is still exactly right: registration is per-document wherever the sheet is adopted.

Option Cost
A — re-derive once, write the same wording to all three files One docs commit. Three copies to keep in step, which is how this drifted.
B — note the embed exception in one file, leave the other two Cheapest, and leaves two of three copies false. That is the failure #264 was filed about.
C — state it once in postcss-scope-widget.mjs, point the other two at it One docs commit, one copy. Matches the call you made on #247 and the one this PR already made for globals.css.

Recommendation: C, with A's re-derivation as the wording. The true reason is not a host page in either direction — it is that runtime-injected third-party CSS never reaches the pass, and lands in the same tree our sheet does. vaul shipped a bare @keyframes fadeIn (patches/[email protected]) and Tailwind ships spin/pulse, so namespacing ours is what keeps animation: sy-atlas-fadeIn resolving to our own definition and nothing else. The gate is what makes that mechanical. Say the word and it goes in this PR; otherwise it wants its own, since it is the third wording of the same claim and globals.css:563 is the only one of the three a CSS author reads.

Notes for reviewer

  • List.tsx is the one place a decision was taken rather than a sentence rewritten. docs(comments): five more comments still say the stylesheet lands in the host's <head> #270 offered "state a true reason, or remove the code with it". The classes are kept: removing them changes rendered output, which wants a computed-style check in a browser (src/AGENTS.md's own rule), and this PR has no browser pass. The reason written in their place is honest about being narrower than the one it replaces.
  • The diff is no longer comment-only. List.test.tsx's test name said "so host element rules cannot paint bullets". Renaming it is the only non-comment change in the branch, and the fingerprint reports it rather than hiding it.
  • The leak list is gone from postcss-scope-widget.mjs, including the antecedent repaired in 0d23201. It enumerated what escapes onto a host page at top level, and nothing does. The two measured leaks stay, re-dated.
  • assert-css-scoped.mjs lost its "weaker half" framing entirely, because the weaker half turned out not to be a reason. That file is also where docs(comments): the CSS scoping pass still says the widget has no shadow boundary #264's reference wording came from, so the two scripts now carry one paragraph instead of two readings of it.
  • Deliberately not touched, and the scope call is still yours. The flattenCascadeLayers docblock in postcss-scope-widget.mjs:397 still says a layered rule "loses to a host page's plain button { ... }" — the same host-wins premise, repeated at src/AGENTS.md:17. It reaches into feat(widget): de-brand the widget and keep host CSS out of it #156 and host-reset.css, which is fix(ui): host color still reaches widget text — --foreground is never declared #262's subject. Say the word and it moves into this PR.
  • #270's own "Notes" item about postcss-scope-widget.mjs:65 is folded in; its keyframe acceptance criterion is the open question above, so it is the one box Closes #270 leaves unticked.
Detail

What was verified, and how. The shadow root is real (r2wc(Widget, { shadow: 'open' }),
src/Widget.tsx:447); the sheet is a constructed CSSStyleSheet on adoptedStyleSheets
(src/styles/sheet.ts:62-89); vite.config.ts:269 passes injectCodeFunction, so nothing is
appended to a <head>; src/main.tsx:19, index.html:9 and .ladle/components.tsx:35 are the
three places <html> carries the scope class — which is what makes the prefix inert in those two
builds, since the scope class is then an ancestor of every element in the document.

Why the List resets survive the decision. Preflight's list rule is ol, ul, menu { list-style: none } (node_modules/tailwindcss/preflight.css:202) and its universal rule zeroes margin and
padding on *, so list-none, m-0 and p-0 duplicate it exactly, and each <li> would
inherit none from the <ul> without [&>li]:list-none. Against a host rule they are now
unreachable either way. What is left is specificity against an element rule inside OUR sheet:
swiper ships .swiper { list-style: none }, in the same direction, and a future @import need
not be. That is the reason written into the file.

Why fonts.ts is the one file where the old mechanism partly still applies. sheet.ts:21-24
says @font-face is deliberately not in the adopted sheet, because a face registered inside a
shadow root is never applied, and fonts.ts keeps putting its own tag in document.head. So the
header now distinguishes the two: the adopted sheet is appended nowhere, and this file's own
<style> really is in the host document.

One claim that was checked and left alone. assert-css-scoped.mjs:319 says a rem resolves
against the host's root font size. That is still true from inside the shadow root, which is the
same correction this PR made to the @theme block and to src/AGENTS.md:17.

Closes #264
Closes #270

🤖 Generated with Claude Code

https://claude.ai/code/session_01BCPr8RSx4XSWZfZQXVhcBt

Both headers explaining the build-time scoping pass opened on a premise
#236 retired: that the widget has no shadow boundary, and that
`vite-plugin-css-injected-by-js` appends the sheet to the host document's
`<head>`. The embed has had an open shadow root since #236, and the sheet
is adopted into it rather than appended anywhere. A maintainer who checked
the stated reason and found it false could reasonably delete a pass that is
still load-bearing.

Each header now carries both halves of the real reason.
`scripts/assert-css-scoped.mjs` already had them, and it is the only file
in the tree that did. The weaker half is that `main.tsx` adopts the same
sink into `document` for the standalone shell, and the Ladle decorator does
the same, so there `<html>` is the theme root and an unscoped selector
still repaints the page around the widget. The load-bearing half is the
embed's: collapsing `:root`, `html`, `body` and `:host` onto `.sy-atlas` is
what gives the widget a root to match inside the shadow root, where no
`html` element exists — without it Preflight and the whole palette never
apply to the embed at all.

The `#91` breadcrumb stays in both, since it is still why the invariant is
mechanical. The two measured leaks that motivated that stay with it, with
"while a host page silently changes" corrected to the page around the
widget — that sentence carried the retired premise in the present tense.

Comments only. `comment-fingerprint.mjs --base origin/main` reports the
code hash identical, the protected census unchanged (K3 4→4, K4 2→2), and
no comment displaced.

Co-authored-by: Claude Opus 5 <[email protected]>
Review of the previous commit caught a false claim it introduced: that the
standalone shell "and Ladle" adopt the sheet into the document. `adoptStyles`
has two call sites — `Widget.tsx` (the shadow root) and `main.tsx` (the
document). `sheet.ts` says it outright: Ladle is not in that path, because
`.ladle/vite.config.ts` skips the injector and imports `globals.css` the
ordinary way. Both headers now say the two boundary-less builds PUT the sheet
on `<html class="sy-atlas">`, which is how `assert-css-scoped.mjs` words it
and is true of each.

Two claims were too strong. "The embed can no longer leak onto a host page"
is wrong as stated, because `styles/fonts.ts` still puts its own `<style>` in
`document.head` by design — the claim is now about this sheet. And "Preflight
and the whole palette never apply to the embed" overstated the root collapse:
Preflight's `*` and element rules match inside a shadow root unrewritten, so
what the collapse is the only source of is the theme tokens, the palette, and
Preflight's own `html`/`body` rules.

Dropped "do not retire this pass on the boundary — it is functional now, not
only defensive." It only parses as an answer to a reviewer of a diff, and the
sentence before it already makes deletion obviously wrong.

The theme block 70 lines below the header carried the same retired premise in
`globals.css`, describing the rem hazard as applying "in a sheet injected into
their head". The hazard is real and unchanged — a rem resolves against the
host's root font size from inside the shadow root too — so only the mechanism
clause moved.

Co-authored-by: Claude Opus 5 <[email protected]>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Oct 10, 2026
@sydevs-bot

sydevs-bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running

recent dispatches
  • 18:10Z address-review · attempt 1 · session · done
  • 18:10Z address-review · attempt 1 · session
  • 17:44Z address-review · attempt 1 · session · done
  • 17:44Z address-review · attempt 1 · session
  • 17:36Z review-pr · attempt 1 · session · done

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧐 Adversarial review

The diff matches #264 — two files, comments only, all five acceptance criteria hold, and the false premise is gone. I verified the load-bearing half in source.

The open question is size. #264 asked both headers to state the rationale, and the result is the same two-halves argument in four files for +14 net comment lines, in a repo whose comment rule says compress. On #247 you called the equivalent "very unnecessary and is adding extra load to our documentation".

One stale copy escaped the sweep: src/AGENTS.md:17, which loads in every src/ session, still carries the sentence this PR corrected in the @theme block.

Findings

  • should-fix — a fourth copy of the rationale; point rather than restate (src/styles/globals.css:6)
  • should-fix — src/AGENTS.md:17 unswept and unfiled (src/styles/globals.css:83)
  • consider — the weaker half names a protection the pass cannot give (scripts/postcss-scope-widget.mjs:10)
  • consider — broken antecedent at "That is Tailwind's Preflight reset" (scripts/postcss-scope-widget.mjs:11)

What was checked

  • New claims verified in source: r2wc(Widget, { shadow: 'open' }) (Widget.tsx:447), adoptedStyleSheets (sheet.ts:62-89), the scope class on <html> (index.html:9, .ladle/components.tsx:35), the rewrite rules (postcss-scope-widget.mjs:28-57). :root matches nothing in a shadow tree, and rem does resolve against the document root from inside one.
  • Diff is comment-only. #91 and #236 present in both files, and neither file has a ⚠ line to lose.
  • The sweep re-run with wider terms (lands in a host page, appends our stylesheet) over src/ scripts/ docs/: the five filed rows, plus src/AGENTS.md:17.
  • No contract surface touched: docs/embedding.md, public/_headers, the CSP table. Built CSS unchanged.
  • Reviewer profile read.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Comment thread src/styles/globals.css Resolved
Comment thread src/styles/globals.css Resolved
Comment thread scripts/postcss-scope-widget.mjs Resolved
Comment thread scripts/postcss-scope-widget.mjs Resolved
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Oct 10, 2026
`That is` replaced `That includes` when the WHY block was rewritten, so the
list read as the identity of a top-level selector rather than as what the
sheet holds at that level.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Giy78iBRfNKJYU8eQkZhyS
The scoping pass's two-halves argument is stated in
`scripts/postcss-scope-widget.mjs`, `scripts/assert-css-scoped.mjs` and
`src/components/AGENTS.md`. A fourth full copy here buys a CSS author nothing
the operational paragraph above it does not already give them, so the header
now leads with that and names the file that owns the argument.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Giy78iBRfNKJYU8eQkZhyS
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Deploying sahajatlas with  Cloudflare Pages  Cloudflare Pages

Latest commit: a543454
Status: ✅  Deploy successful!
Preview URL: https://024b2664.sahajatlas.pages.dev
Branch Preview URL: https://claude-docs-264-css-scope-sh.sahajatlas.pages.dev

View logs

@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Four threads, two commits, two filings. Lean gate green on 7bc0a72.

Adopted and resolved

Filed on #270, not swept here — both left open for you

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Oct 10, 2026
@sydevs-bot
sydevs-bot marked this pull request as ready for review October 10, 2026 17:57
@sydevs-bot
sydevs-bot requested a review from Ardnived October 10, 2026 17:57
@sydevs-bot
sydevs-bot enabled auto-merge October 10, 2026 17:57
@Ardnived

Copy link
Copy Markdown
Contributor

@sydevs-bot fold #270 into this PR: every site in its body and its follow-up comment, including src/AGENTS.md:17 and the confinement claim in scripts/assert-css-scoped.mjs:8-15. Adopt the two threads you rebutted on scope, and resolve them. The keyframe claim that needs a decision goes under ## Open questions in this PR's body, with options and a recommendation. Add Closes #270 to the body.

@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed awaiting labels Oct 10, 2026
#236 put the embed behind a shadow boundary, so the built sheet is
adopted rather than appended to a host `<head>`. Five comments still
stated the old mechanism as the reason for the code they defend.

Each conclusion survives; the reason is re-derived:

- `fonts.ts` — the runtime-resolved URL is still required, because a
  relative `url()` in a constructed sheet resolves against the document
  base URL. Its own `<style>` in `document.head` is now named as the one
  place the old mechanism really does still apply.
- `architecture.md` — the injector is still in the chain, with an
  `injectCodeFunction` that hands chunks to `src/styles/sheet.ts`.
- `List.tsx` / `List.test.tsx` — the host `li` rule the resets defended
  against cannot match inside the shadow root, and the boundary-less
  builds have no host page. The resets are kept, for independence from
  preflight, which resets `ol, ul, menu` and not `li`.
- `base.css` — `.sy-carousel` is still right, because `.swiper` is
  Swiper's class and would repaint every instance in the widget.

The spec's test name carried the retired premise too, so the diff is not
comment-only.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BCPr8RSx4XSWZfZQXVhcBt
`src/AGENTS.md:17` carried the twin of the `@theme` sentence this branch
already corrected: "The stylesheet lands in a host page". It does not —
the embed adopts it into a shadow root (#236). The #238 hazard is
unchanged, because a `rem` resolves against the host document's root
font size from inside the root too.

This copy loads in every session that touches `src/`, so it is the
higher-traffic of the two.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BCPr8RSx4XSWZfZQXVhcBt
Both files said the pass keeps an unscoped selector from repainting the
page in the two boundary-less builds. The scope class sits on
`document.documentElement` there (`index.html:9`,
`.ladle/components.tsx:35`), so `:where(.sy-atlas) :is(main)` matches
exactly what `main` matched — the prefix narrows no reach, and neither
build has a host page to be confined from.

One re-derivation, written to both files: the collapse onto `.sy-atlas`
is what survives the boundary, and the prefix is uniform so the collapse
and the keyframe namespacing are total and the gate can read the result
out of the emitted bytes.

Three claims went with it. The leak list enumerated what escapes onto a
host page, and nothing does. `assert-css-scoped.mjs` still said
Preflight and the whole palette never apply to the embed, which is too
strong — Preflight's `*` and element rules match inside a shadow root
unrewritten. The stray-asset note had the host page linking a file it
never sees.

`:host` is no longer attributed to Tailwind 3.4; the pin is 4.3.3 and a
version in a comment only goes stale again.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BCPr8RSx4XSWZfZQXVhcBt
…laim

`src/components/AGENTS.md:57` said the pass is what keeps the two
boundary-less builds honest. The scope class is the document root there,
so it is not — and this branch has just retired the claim in both
scripts. The guide now points at `postcss-scope-widget.mjs` for the
argument instead of restating it.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BCPr8RSx4XSWZfZQXVhcBt
@sydevs-bot sydevs-bot changed the title docs(comments): the CSS scoping pass still says the widget has no shadow boundary docs(comments): no comment claims the stylesheet lands in a host page Oct 10, 2026
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

#270 folded in. Four new commits on a543454, lean gate green, body and title refreshed.

Adopted — the five sites in #270's body (fonts.ts, architecture.md, List.tsx + its spec, base.css), src/AGENTS.md:17 (160ef7f), and the confinement claim in both scripts as one paragraph (365baf3). src/components/AGENTS.md held a fourth copy of that claim; the docs sweep caught it (a543454). Both threads resolved.

Decided — List.tsx's resets stay. The host-rule hazard is unreachable, so the reason is narrower now: independence from preflight, which resets ol, ul, menu and not li. Deleting the classes changes render output and wants a browser check.

Open question — the keyframe claim is in the body, three options and a recommendation. Its @font-face twin at assert-css-scoped.mjs:144 rides the same decision, so Closes #270 leaves that one criterion open.

No longer comment-only — List.test.tsx's test name carried the premise too.

flattenCascadeLayers stays untouched, on your #262 call.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Oct 10, 2026
@sydevs-bot
sydevs-bot added this pull request to the merge queue Oct 10, 2026
Merged via the queue into main with commit 3dad0ed Oct 10, 2026
46 of 48 checks passed
@sydevs-bot
sydevs-bot deleted the claude/docs-264-css-scope-shadow branch October 10, 2026 19:13
@sydevs-bot sydevs-bot moved this from Revising to Done in SYDevelopers Technical Roadmap Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

3 participants