Skip to content

Editorial definition-list grid overrides authored columns #5089

Closed

Description

@leaf-agent

Push run 41395985405, at 5d7e533eb225, records this failing boundary.

  • tests.browser.test_plain_pages::test_an_ordinary_page_is_drawn_as_written[editorial]
AssertionError: light overridden grid-template-columns on main > dl:0 #62c3cbde: light and no-preference: grid-template-columns, where the author's overridden value gives '244.422px 244.422px 244.422px 0px', is '177.312px 177.328px 177.312px 177.328px' on main > dl:0
  dark overridden grid-template-columns on main > dl:0 #62c3cbde: dark and reduce: grid-template-columns, where the author's overridden value gives '244.422px 244.422px 244.422px 0px', is '177.312px 177.328px 177.312px 177.328px' on main > dl:0
assert not ["light overridden grid-template-columns on main > dl:0 #62c3cbde: light and no-preference: grid-template-columns, where the author's overridden value gives '244.422px 244.422px 244.422px 0px', is '177.312px 177.328px 177.312px 177.328px' on main > dl:0", "dark overridden grid-template-columns on main > dl:0 #62c3cbde: dark and reduce: grid-template-columns, where the author's overridden value gives '244.422px 244.422px 244.422px 0px', is '177.312px 177.328px 177.312px 177.328px' on main > dl:0"]

This report session read the CI diagnostic but did not run a local reproduction or establish the cause. Reconcile current main, open repairs and active Tend work before claiming a fix. Reproduce the focused case, inspect the introducing change’s intent and the current owning contract, and preserve the actual user behavior when deciding whether the fixture or product needs correction. Similar feature names do not establish a shared mechanism; reuse an existing owner if reproduction proves one. Full tracebacks and screenshots are in the run’s pytest-results-* artifact.

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Nov 2, 2026
  2. leaf-agent commented on Nov 2, 2026

    @leaf-agent
    CollaboratorAuthor

    Reproduced on main 7075a022d. The cause is #4889's global dl:is(.facts, .lf-facts) > div { display: contents } rule in browser/styles/components/reading.css: the editorial page's three label/value cards become six grid items. Its authored repeat(auto-fit, minmax(10rem, 1fr)) still wins the cascade, but those extra items prevent the fourth track from collapsing. This changes the list from three 244px cards to four 177px tracks in both media.

    The remaining choice belongs to @max-sixty: should a page initialized without a theme still opt into Leaf's facts component merely by using the class facts? #4889 deliberately made that component apply outside the reading face so slotted worktree details retain their layout. #5049 explicitly recorded the collision as the class-vocabulary obstacle. Removing that global reach would preserve an ordinary page's own cards, but its replacement must keep the intentionally shared label/value layout in Leaf's surfaces and worktree details. I have left this issue open for that decision rather than pinning the new departure or reversing the component policy.

    Focused reproduction and isolating experiment
    uv run pytest 'tests/journeys/test_plain_pages.py::test_an_ordinary_page_is_drawn_as_written[editorial]' -q -n0

    The test moved from tests/browser/ in #5081. On unchanged main it fails with the reported light/dark grid values, plus changed card sizes. Temporarily restricting only the display: contents wrapper rule to dl.lf-facts > div removes every unexpected difference; the test then fails solely because its old KNOWN size pin no longer occurs. The experiment was reverted; no tracked changes remain. This establishes the mechanism, not a completed fix or a passing regression test.

  3. max-sixty commented on Nov 5, 2026

    @max-sixty
    Owner

    Max's decision from the backlog triage: go ahead with this repair.

    Repair: Core reading.css styles only dl.lf-facts, and dl.facts moves to the reading package, so a page without the theme keeps its own class="facts" layout.

    What decides it: SOUL.md: an author who writes good HTML and CSS gets the page they wrote. #5288 gave Leaf's own controls lf- names for the same reason.

    This was written by Claude Code on behalf of max-sixty

  4. leaf-agent commented on Nov 5, 2026

    @leaf-agent
    CollaboratorAuthor

    Opened #5421 with this repair: core reading.css now styles only dl.lf-facts, and the reading theme carries the dl.facts layout. On that branch the editorial plain-page case passes, and the reading-themed states I captured draw the same as on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions