Skip to content

Count a widget as a picture by its x-visual declaration, not its tag - #3238

Merged
max-sixty merged 2 commits into
mainfrom
options-hold-their-captures
Oct 20, 2026
Merged

max-sixty merged 2 commits into
mainfrom
options-hold-their-captures

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

A decision laid its options across when an option held lf-chart or lf-shot, which ask.css named by tag, so a picture widget under any other name, lf-diagram or a project package's, did not count. Stylesheets read registry declarations through $marks, which paints each on the element, as pane layout already does for x-reading-role; x-visual was not among them.

x-visual now paints data-lf-visual (skills/leaf/assets/registry.json), and ask.css reads it beside HTML's own picture elements, so any widget that declares it draws a picture counts. Its $keys entry says the declaration now also sets layout. The runtime's generated marks.js and the kernel are rebuilt.

test_options_holding_pictures_lay_across adds a project package's picture widget with no module, which fails on the tag list and passes now. lf-shot's reduced-motion rule moves from toc.css, where the theme split (#2475) left it, to shot.css; the compiled theme changes only in its position.

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

max-sixty and others added 2 commits October 19, 2026 20:21
A decision laid its options across when an option held `lf-chart` or `lf-shot`, named in ask.css, so a picture widget under any other name, `lf-diagram` included, did not count. Stylesheets read registry declarations through `$marks`, which paints each on the element; `x-visual` was not among them. It now paints `data-lf-visual`, and ask.css reads that beside HTML's own picture elements, so any package's widget that declares it draws a picture counts.

The obligations test adds a project package's picture widget, which fails on the tag list and passes now. lf-shot's reduced-motion rule moves from toc.css, where the theme split left it, to shot.css.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit ea8ffa3 into main Oct 20, 2026
3 checks passed
@max-sixty
max-sixty deleted the options-hold-their-captures branch October 20, 2026 05:19
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.

2 participants