Repository navigation
Declare visual action as a shared chrome class - #3003
Merged
Merged
Conversation
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.
This was referenced Oct 15, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Declare
lf-visual-actionin 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 fromchromeSharedClasses, 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_rulespasses; all 494 runtime tests pass;pnpm run check:browserandgit diff --checkpass.