Repository navigation
Cut version-check readings that restate Chrome or re-check Leaf's own files - #1239
Merged
Merged
Conversation
… files Leaf's checks should catch what breaks Leaf or visibly breaks a page and that nothing else reports. These did neither: - Stray end tags and duplicate attributes: Chrome recovers both, and TurboHTML keeps the first duplicate value exactly as Chrome does. - The pinned-pixel-width column lint, with its `--lf-reading-column` claim in the theme: a static guess at overflow the theme caps (`img, svg, video` at 100%) and `--render` measures directly. - `language-*` class checks on plain `<pre><code>`: plain HTML claims no vocabulary. The runtime now leaves a language outside `$languages` uncolored instead of throwing a console error; `lf-code`'s declared `language` is still held to the list. - Vendored-stylesheet syntax on every check: `page init` checks them when it composes the layer. - Browser readings about Leaf's own runtime and theme (`silentCuts`, `withheldRoom`), the unnamed-form-field probe (real Chrome reports that issue through the DevTools issues the gate already reads), and the print pass. Tests that held only these readings are deleted; the scrolling, room and edge-shade tests keep their layout assertions. A new render test holds that an unknown plain-block language stays uncolored with no console error. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
reviewed
Sep 26, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The lint job fails on this head because Prettier rewrites the new highlightBlocks condition. The inline suggestion uses its output.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Sep 26, 2026
max-sixty
added a commit
that referenced
this pull request
Sep 27, 2026
…me (#1255) After #1246 the margin rail claims no room: it stands wherever the room beside `main` holds it, and only `data-rail="right"` takes that room. Prose across the tree still described the old model, and the decision E test missed the chrome. ## Prose now describes the current model These sources still described a reserved rail, an 863px floor, `x-measure`, or workspaces inside page tabs: - the developer glossary; - how-it-works; - the theme and runtime comments; - `structure.py`; - test docstrings; - the feature gallery, with the corpus regenerated. They now state what the code does. The glossary's Pin entry lists every case that pins a marker. Its reading-posture entry no longer claims that only a held workspace bounds a region, since a visual review's capture is bounded in any page. `test_check_measures_against_the_column_the_page_sets_for_itself` is deleted. It set `--lf-reading-column`, which nothing has read since #1239 cut the column lint, so it passed however the page was written. ## Decision E also reaches the chrome `test_a_pages_own_element_rules_leave_the_layers_controls_alone` is still a strict xfail, but it now reads the chrome's buttons as well as a widget's controls. A page's bare `button {}` restyles the family, ink, border, background and padding of every button in the banner and thread panel, because `.lf-btn`'s face is in `shadow.css`, inside `lf-base`. On the commit before #1246, only the family leaked into those buttons, through `lf-reset`'s `font: inherit`. `TODO.md` records this, along with the ownership that unblocks the boot-time exclusion: a widget's controls take their face from the sheet of the package that ships the widget. Its Layout intro and `notes/dependency-survey.md` no longer describe cascade layers as untried. ## Testing - `uv run pytest tests`: 1431 passed, 1 xfailed, 1 failed. The failure, `test_a_preview_holds_one_contract_until_it_closes`, passes when rerun alone and touches nothing this change does. - The widened xfail fails on its assertion, not in setup: with `--runxfail`, the board's controls read `cursive` in the page's red. > _This was written by Claude Code on behalf of max-sixty_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 (1M context) <[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.
Leaf's checks should catch what breaks Leaf or visibly breaks a page, and that nothing else reports. This removes the ones that do neither, about 1,150 lines net.
Static (
version check)--lf-reading-column: 1claim in the theme that existed only so the lint could find the column. The theme already capsimg, svg, videoatmax-width: 100%, and--rendermeasures overflow directly. The success line no longer names a column.language-*class checks on a plain<pre><code>. Plain HTML claims no vocabulary, so the runtime now leaves a language outside$languagesuncolored rather than throwing a console error. Anlf-codelanguageattribute is still held to the list.page initchecks them when it composes the layer. The page's own<style>and inline styles are still checked.Browser (
--render)silentCutsandwithheldRoom. Both read Leaf's own runtime and theme;readings.py's docstring already puts those checks in the suite rather than the per-page gate.unnamedFormFields. Real Chrome raises that DevTools issue itself, and the gate already reads DevTools issues; the probe existed only so the suite's headless shell would see it.paperWords,paperVoids, and the printcoveredWords.The stylesheet-link rule (
relandhrefonly) stays: delivery and export readattrs["href"]directly. The syntax-contrast reading (unreadSyntax) also stays. Axe passes the code spans it catches, and page CSS can cause the failure.Tests
test_a_plain_block_in_a_language_the_layer_cannot_color_stays_plainfails against the old runtime, on the console error.uv run pytest testspasses (1438), and so doesnpm run test:runtime.#1234 edits
silentCuts, which this deletes; whichever lands second resolves the conflict by taking the deletion.🤖 Generated with Claude Code