Repository navigation
fix: count Leaf's apparatus in the render gate only beside elements the page wrote - #6309
Merged
Merged
Conversation
The render gate's apparatus check treated every box inside a markup widget as the page's own. Since #6231 a playground's content is the author's markup, so the bar of actions and instruction popover the module builds inside it (a generated form, regions, footer and head) read as the page's elements, and the submit button, instruction title and copy button in them were reported on every playground page. The check now reports a Leaf element only where an element the page's source wrote stands beside it, since only those siblings' structural rules change. A Leaf element placed beside the author's preview content, inside the module's own stage box, is still reported. Refs #6297
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.
The render gate's
apparatus among authoredcheck reported Leaf's own controls on every playground page because, since #6231,lf-playground's content is the author's markup (the registry default), somoduleOwnsBoxno longer treats its descendants as the module's. The bar of actions and instruction popover the playground builds inside it (a generated<form>,.lf-playground-instruction-region,<footer>, the popover head) are not the page's elements, yet the submit button, instruction title andwa-copy-buttonin them were read as standing among the author's markup. #6231 meant to make the fields native markup, not to change where Leaf's bar sits, so the gate was misreading a structure the change intended.The check now reports a Leaf element only where an element the page's source wrote (
servedElements()) stands beside it, which is the situation the finding describes: only those siblings':first-childorh2 + prules change. If no source pairing is available, the check behaves as before.Verification, all
--run-nightlyby node id on Linux:test_page_fixture_renders[playground],[alert-thresholds]and[data-explorer]fail on main with only the apparatus findings and pass with this change.code-comparison,notification-playgroundandmotion-playgroundno longer report apparatus, but still fail on their other findings (below)..lf-uidiv into the playground's.lf-playground-stagebeside the author's preview content still produces theapparatus among authoredfinding, so the module's own box doesn't hide Leaf elements placed among the page's elements.pnpm run check:browserpasses.What this leaves of #6297, each with a separate cause:
code-comparison: the twolf-codecandidates overlap at 720–760px, and the page scrolls sideways by 88px at 360–440px. These come from the example's rewritten candidate CSS.notification-playground: at 760px the absolutely placed.setting > outputcovers its label's wrapped words.motion-playground: writes at rest onlf-playground#panel-motion(data-lf-user-override,childList), plus a doubledrequestFrame.test_render_controls.py::test_each_sampled_focus_ring_is_shown_whole_in_its_surfaceonmotion-playground.Part of #6297 — automated triage