Repository navigation
fix(runtime): make drifted hit-testing, scroll, focus and accessibility paths use the canonical rule - #1219
Merged
Conversation
…ty paths use the canonical rule
…p hit guard as they were, and give each fix its own changelog entry
This was referenced Nov 23, 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.
An audit of hit testing, scrolling, focus and accessibility found ten places where a second code path had its own copy of a rule and the copy had drifted. Each now calls the canonical rule, and each has a test that fails on
dev.input_text_point, built on the text origin drawing usesscroll_in_chain, the walkwheel_targetusesk > seqwhere the other occlusion tests usek >= seqEl::scalestay at 1x and do not update when the scale changesa11y_text_origin, built on the text origin drawing usesshift()andtoward()ElementInfo::targetfor a link or highlight in a scaled subtree is scaledspan_boxesTx::keep_on_screenon a virtual row in a scaled viewport jumps the scrollactive_descendant, and their children still hoverlive_named, andsubtree_exitingfor hoverfocus_groupand onecan_take_focusEach row has its own entry in
changelog/unreleased/.Left out
Cx::window_layoutandEl::on_layoutreport a stuck header's pinned position, to agree with anchored popovers.El::sticky_topdocuments the opposite (layout does not move;on_drawn_layoutandElementInfo::rectfollow the drawn place), and an app can compare the two to tell when a header is stuck, so this is unchanged.page_scroll_xin right-to-left web documents. The DOM bridge creates its scroll containers withoutdir="rtl"and readsscrollLeftdirectly; fixing the sign needs a matching change inbridge.js.