Repository navigation
Count a widget as a picture by its x-visual declaration, not its tag - #3238
Merged
Merged
Conversation
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]>
leaf-agent
approved these changes
Oct 20, 2026
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.
A decision laid its options across when an option held
lf-chartorlf-shot, whichask.cssnamed by tag, so a picture widget under any other name,lf-diagramor a project package's, did not count. Stylesheets read registry declarations through$marks, which paints each on the element, as pane layout already does forx-reading-role;x-visualwas not among them.x-visualnow paintsdata-lf-visual(skills/leaf/assets/registry.json), andask.cssreads it beside HTML's own picture elements, so any widget that declares it draws a picture counts. Its$keysentry says the declaration now also sets layout. The runtime's generatedmarks.jsand the kernel are rebuilt.test_options_holding_pictures_lay_acrossadds 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 fromtoc.css, where the theme split (#2475) left it, toshot.css; the compiled theme changes only in its position.