Skip to content

Add a layout-3 walk with plain selectors (css#104) - #106

Merged
moshez merged 1 commit into
mainfrom
worker/104
Nov 30, 2026
Merged

moshez merged 1 commit into
mainfrom
worker/104

Conversation

@moshez

@moshez moshez commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Fixes #104

Head: 799d688

Plan

quire#1066 needs a page <style> that paints an SVG element to match it, but css's walk scopes every selector to the container and [data-book-element]. Add a layout-3 walk beside the scoped one (overlap rule, additive):

  • book_sheet_pieces_plain and book_sheet_walk_plain, typed book_read(cs, n, 3): selectors as written (.x, #x, no container prefix, no :where([data-book-element]), no :is(div, span)).
  • book_sheet_pieces and book_sheet_walk keep their types and output; layouts 1 and 2 use them, so there is nothing to remove and no removal ticket is needed (CLAUDE.md, "plain-walk").
  • Accept fixture book-plain-walk; reject fixture book-plain-walk-reflow (a reflow read, which needs the container scope, is refused by type).

Execution

Local checks, raw output (CI runs the rest; css has no scripts/ci-groups.py).

Evidence

$ bats check --repository /home/user/repository-prototype
generated docs (4 module(s))
check passed (library)
$ bats test --repository /home/user/repository-prototype
  PASS test_plain_svg_type
  PASS test_plain_svg_class_id
  PASS test_plain_no_scope
  PASS test_plain_scoped_walk_kept
  ...
all tests passed
$ tests/static/run.sh /home/user/repository-prototype
ok   accept/book-plain-walk
ok   accept/book-read-at
ok   reject/book-plain-walk-reflow
ok   reject/book-read-at-past-end
(all fixtures: 23 ok, 0 FAIL)

The reject fixture expect is unsolved constraint: C3NSTRprop(C3TKmain(); S2Eeqeq(S2Eintinf(1); S2Eintinf(3))).


Generated by Claude Code

Additive: book_sheet_pieces_plain and book_sheet_walk_plain beside the scoped walk, which keeps its types.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HwLsLqnBm3u7Rwk8pezYB3
@moshez
moshez merged commit 6467c17 into main Nov 30, 2026
7 checks passed
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.

Add a layout-3 walk with plain selectors for page styles that paint SVG

2 participants