mirror of
https://github.com/servo/servo
synced 2026-05-10 17:12:23 +02:00
The compositor was accepting scroll offsets from the ScriptThread without checking their boundaries. In some cases this could cause a temporary discrepancy with the rendered scroll offset. This change makes it so that all offset updates for scroll ayers in the compositor do not scroll past the scroll boundaries of the node. Testing: Two new tests pass with this change: - `/css/css-position/sticky/position-sticky-left-003.html` - `/css/css-position/sticky/position-sticky-top-003.html` Signed-off-by: Martin Robinson <mrobinson@igalia.com>