Repository navigation
core, page-script, wpt: transform-aware scroll overflow and keyboard select navigation - #229
Open
BernardoPe wants to merge 5 commits into
Open
BernardoPe wants to merge 5 commits into
BernardoPe wants to merge 5 commits into
Conversation
BernardoPe
requested review from
LuisDuarte1,
celso,
jonnyparris and
ruifigueira
as code owners
November 24, 2026 15:21
BernardoPe
force-pushed
the
bpereira/compat-transform-scroll-overflow
branch
from
November 24, 2026 15:44
401649d to
2755ee6
Compare
BernardoPe
force-pushed
the
bpereira/compat-transform-scroll-overflow
branch
from
November 24, 2026 16:10
2755ee6 to
11eca13
Compare
BernardoPe
force-pushed
the
bpereira/compat-transform-scroll-overflow
branch
from
November 24, 2026 22:16
11eca13 to
0d0a90c
Compare
BernardoPe
force-pushed
the
bpereira/compat-transform-scroll-overflow
branch
2 times, most recently
from
November 24, 2026 22:50
1f1e39f to
7eacb23
Compare
ruifigueira
reviewed
Nov 25, 2026
BernardoPe
force-pushed
the
bpereira/compat-transform-scroll-overflow
branch
from
November 25, 2026 22:16
7eacb23 to
c4b0777
Compare
ruifigueira
approved these changes
Nov 25, 2026
ruifigueira
left a comment
Collaborator
There was a problem hiding this comment.
beep-boop-rui-agent-🤖
The blocking findings are fixed. Approving.
BernardoPe
force-pushed
the
bpereira/compat-transform-scroll-overflow
branch
2 times, most recently
from
November 26, 2026 12:38
c723bbf to
e214a8a
Compare
BernardoPe
force-pushed
the
bpereira/compat-transform-scroll-overflow
branch
from
November 26, 2026 17:47
e214a8a to
65cde82
Compare
ruifigueira
reviewed
Nov 27, 2026
… scrollHeight Scrollable overflow previously read Taffy's pre-transform `scroll_width()` / `scroll_height()`, so an absolutely positioned box centered with `left: 50%; transform: translateX(-50%)` inflated `documentElement.scrollWidth` by its untransformed right edge, while a box shifted out of view by `translateX(...)` was omitted. When a node's unclipped subtree contains a CSS `transform`, compute its scrollable overflow extent by mapping each contributing child's clipped local box through its layout offset and `transform` per CSS Overflow 3 §2.2, leaving the fast path unchanged for subtrees without transforms. https://drafts.csswg.org/css-overflow-3/#scrollable Signed-off-by: bpereira <bpereira@cloudflare.com>
Signed-off-by: bpereira <bpereira@cloudflare.com>
…sed select `dispatchKeyEvent` only handled keyboard input on `<input>` and `<textarea>`, leaving a focused `<select>` unresponsive to `ArrowDown`/`ArrowUp`/`ArrowLeft`/ `ArrowRight`, `Home`/`End`, and printable typeahead keys. Handle those keys on enabled `<select>` controls per HTML §4.10.7, skipping disabled options and disabled `<optgroup>`s, updating `selectedIndex`, and dispatching trusted `input` and `change` events. https://html.spec.whatwg.org/multipage/form-elements.html#the-select-element Signed-off-by: bpereira <bpereira@cloudflare.com>
Skip body clipping in transform-aware scrollable overflow when body's overflow propagates to the viewport (CSS Overflow 3 §3.3), and seed inline roots from Taffy's unclipped extent so text lines are preserved alongside transformed atomic inline boxes. Signed-off-by: bpereira <bpereira@cloudflare.com>
…scroll The transform-aware scrollable overflow walk diverged from Taffy in three ways. `contain: layout`/`paint` was not treated as clipping, a scroll container's end padding was dropped, and RTL containers measured only the physical right edge so left overflow collapsed to zero. Score contributions the way Taffy does: mirror the inline axis for RTL, add the inline-end and block-end padding for scroll containers, and treat layout/paint containment as clipping. A transform can legitimately shrink the scroll size, so the walk still replaces Taffy's untransformed extent rather than taking it as a floor. Signed-off-by: bpereira <bpereira@cloudflare.com>
BernardoPe
force-pushed
the
bpereira/compat-transform-scroll-overflow
branch
from
November 27, 2026 19:55
65cde82 to
781f8e7
Compare
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.
Stacked on #214 (
bpereira/compat-rendering-paint).Changes
packages/core/src/layout/scroll.rs): when a node's unclipped subtree contains a CSStransform, computescrollWidthandscrollHeightby mapping each contributing child's clipped local box through its layout offset andtransformper CSS Overflow 3 §2.2, leaving the existing fast path unchanged when no transform is present.tests/wpt-expectations.json): enroll/css/css-overflow/overflow-abpos-transform.htmland/css/css-overflow/scrollable-overflow-transform-011.html.<select>selection (packages/page-script/src/index.ts): handleArrowDown/ArrowUp/ArrowLeft/ArrowRight,Home/End, and printable typeahead keys on focused<select>elements per HTML §4.10.7, skipping disabled options and<optgroup>s and dispatching trustedinputandchangeevents.Verification
//packages/core:core_test+//:rust_lint: 30/30 passed (with 3 new tests inpackages/core/src/layout/tests/transform_scroll_overflow.rs).//tests/wpt:retry: both enrolledcss-overflowWPT tests verifiedPASS.//packages/page-script:all: 2/2 passed;//packages/engine/test/e2e:select-default-submit: 4/4 passed.