Skip to content

Declare visual action as a shared chrome class - #3003

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-38662520639-chrome-shared-visual-action
Oct 15, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-38662520639-chrome-shared-visual-action

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Declare lf-visual-action in the chrome sheet's shared-class vocabulary. #2981 deliberately gave the page-mounted visual-action chip the same focused face as the skip link, using a rule outside @scope (.lf-chrome). The class was omitted from chromeSharedClasses, so the browser scope gate reported a supposedly private chrome rule reaching page content. The rule's reach is intentional; this change records that contract and rebuilds the vendored kernel.

Verification: the previously failing test_a_coined_class_cannot_reach_the_chromes_rules passes; all 494 runtime tests pass; pnpm run check:browser and git diff --check pass.

The focused visual-action chip lives on the page, and the shared focus rule in chrome.css deliberately reaches it outside the chrome scope. The rule added in #2981 omitted lf-visual-action from chromeSharedClasses, so the browser scope gate treated the class as private and failed. Declare the class at the sheet contract and rebuild the kernel.
@leaf-agent
leaf-agent merged commit 72f4c01 into main Oct 15, 2026
2 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38662520639-chrome-shared-visual-action branch October 15, 2026 08:06
leaf-agent added a commit that referenced this pull request Oct 15, 2026
#2997 made stylesheet access to Leaf controls explicit. That left
PhotoSwipe's runtime stylesheet, which Leaf appends inside its image
dialog, subject to page CSS filtering. Its positioning rules no longer
reached the viewer, so the fitted image appeared below the stage. Mark
that sheet `data-controls` before attaching it. Browser probes that
deliberately style Leaf controls now declare the same access, preserving
their original assertions.

This addresses 16 failures in the [main CI
run](https://github.com/max-sixty/leaf/actions/runs/38700868252). The
two other failures in that run were separately repaired by #3003 and
#3005; their current tests pass. The 16 affected browser cases pass
locally, including both online and exported image previews, compositor
frames, the corpus stylesheet-order gate, and control styling. `pnpm run
check`, 487 runtime tests, and changed-file pre-commit checks pass.

Co-authored-by: leaf-agent <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant