Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: cce7cffe955e012a6d428cda6dbab5098b841bad
https://github.com/WebKit/WebKit/commit/cce7cffe955e012a6d428cda6dbab5098b841bad
Author: Anne van Kesteren <[email protected]>
Date: 2026-08-18 (Tue, 18 Aug 2026)
Changed paths:
A LayoutTests/fast/forms/switch/pointer-tracking-transform-expected.txt
A LayoutTests/fast/forms/switch/pointer-tracking-transform.html
A LayoutTests/fast/forms/switch/pointer-tracking-vertical-lr-expected.txt
A LayoutTests/fast/forms/switch/pointer-tracking-vertical-lr.html
M LayoutTests/platform/ios/TestExpectations
M Source/WebCore/html/CheckboxInputType.cpp
Log Message:
-----------
<input type=checkbox switch>: pointer tracking uses the wrong axis and
coordinate space
https://bugs.webkit.org/show_bug.cgi?id=321929
Reviewed by Aditya Keerthi.
updateIsSwitchVisuallyOnFromAbsoluteLocation took the track width and the thumb
length
from absoluteBoundingBoxRect, which is wrong twice over.
Width and height are the wrong way around for a vertical switch, so the thumb
moved once
the pointer passed roughly 29% of the track rather than the middle of it.
And the rect is in absolute coordinates while
switchPointerTrackingLogicalLeftPosition
returns a local one, so a transformed switch compared a local position against
transform-inflated lengths. Under transform: scale(5) the change position sits
five times
past the end of the track, so the thumb never moves and every drag ends up as
an ordinary
click.
Tests: fast/forms/switch/pointer-tracking-transform.html
fast/forms/switch/pointer-tracking-vertical-lr.html
Canonical link: https://commits.webkit.org/319434@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications